mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/15305] Fix streams
PHPBB3-15305
This commit is contained in:
@@ -201,7 +201,7 @@ class local implements adapter_interface
|
||||
*/
|
||||
public function read_stream($path)
|
||||
{
|
||||
$stream = @fopen($path, 'rb');
|
||||
$stream = @fopen($this->root_path . $path, 'rb');
|
||||
|
||||
if (!$stream)
|
||||
{
|
||||
@@ -221,7 +221,7 @@ class local implements adapter_interface
|
||||
throw new exception('STORAGE_FILE_EXISTS', $path);
|
||||
}
|
||||
|
||||
$stream = @fopen($path, 'w+b');
|
||||
$stream = @fopen($this->root_path . $path, 'w+b');
|
||||
|
||||
if (!$stream)
|
||||
{
|
||||
|
Reference in New Issue
Block a user