mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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:
parent
086ea06191
commit
68c349fdc1
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ class install_install extends module
|
||||||
foreach ($directories as $dir)
|
foreach ($directories as $dir)
|
||||||
{
|
{
|
||||||
$write = $exists = true;
|
$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))
|
if (!is_writeable($phpbb_root_path . $dir))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue