File: phpbb/filesystem/filesystem.php
Unmodified
Added
Modified
Removed
Line 613 | Line 613 |
---|
} else {
|
} else {
|
$handle = @fopen($file, 'c');
| $handle = new \SplFileInfo($file);
|
|
|
if (is_resource($handle)) { fclose($handle); return true; }
| // Returns TRUE if writable, FALSE otherwise return $handle->isWritable();
|
} } else
| } } else
|
Line 637 | Line 634 |
---|
}
/**
|
}
/**
|
* Try to resolve real path when PHP's realpath failes to do so
| * Try to resolve real path when PHP's realpath fails to do so
|
* * @param string $path * @return bool|string
| * * @param string $path * @return bool|string
|