mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable().
PHPBB3-9519
This commit is contained in:
@@ -701,7 +701,7 @@ function phpbb_chmod($filename, $perms = CHMOD_READ)
|
||||
|
||||
clearstatcache();
|
||||
|
||||
if (is_readable($filename) && is_writable($filename))
|
||||
if (is_readable($filename) && phpbb_is_writable($filename))
|
||||
{
|
||||
break;
|
||||
}
|
||||
@@ -711,7 +711,7 @@ function phpbb_chmod($filename, $perms = CHMOD_READ)
|
||||
|
||||
clearstatcache();
|
||||
|
||||
if ((!($perms & CHMOD_READ) || is_readable($filename)) && (!($perms & CHMOD_WRITE) || is_writable($filename)))
|
||||
if ((!($perms & CHMOD_READ) || is_readable($filename)) && (!($perms & CHMOD_WRITE) || phpbb_is_writable($filename)))
|
||||
{
|
||||
break;
|
||||
}
|
||||
@@ -721,7 +721,7 @@ function phpbb_chmod($filename, $perms = CHMOD_READ)
|
||||
|
||||
clearstatcache();
|
||||
|
||||
if ((!($perms & CHMOD_READ) || is_readable($filename)) && (!($perms & CHMOD_WRITE) || is_writable($filename)))
|
||||
if ((!($perms & CHMOD_READ) || is_readable($filename)) && (!($perms & CHMOD_WRITE) || phpbb_is_writable($filename)))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user