aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorGraham Eames <grahamje@users.sourceforge.net>2006-04-22 15:06:05 +0000
committerGraham Eames <grahamje@users.sourceforge.net>2006-04-22 15:06:05 +0000
commit68c349fdc1ad29ff3c80961297db31b1e725973f (patch)
tree5f5195529f8cf8b0e86f8b55fe123f1840d3d8e5 /phpBB
parent086ea061910b8adaa6afd018a99af0c74120f880 (diff)
downloadforums-68c349fdc1ad29ff3c80961297db31b1e725973f.tar
forums-68c349fdc1ad29ff3c80961297db31b1e725973f.tar.gz
forums-68c349fdc1ad29ff3c80961297db31b1e725973f.tar.bz2
forums-68c349fdc1ad29ff3c80961297db31b1e725973f.tar.xz
forums-68c349fdc1ad29ff3c80961297db31b1e725973f.zip
Harden the check slightly in case someone does something really silly and has a file of that name instead of a directory
git-svn-id: file:///svn/phpbb/trunk@5823 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rwxr-xr-xphpBB/install/install_install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index 7981908957..2b36622174 100755
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -280,7 +280,7 @@ class install_install extends module
foreach ($directories as $dir)
{
$write = $exists = true;
- if (file_exists($phpbb_root_path . $dir))
+ if (file_exists($phpbb_root_path . $dir) && is_dir($phpbb_root_path . $dir))
{
if (!is_writeable($phpbb_root_path . $dir))
{