From 68c349fdc1ad29ff3c80961297db31b1e725973f Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Sat, 22 Apr 2006 15:06:05 +0000 Subject: [PATCH] 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 --- phpBB/install/install_install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {