mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
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
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user