1
0
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:
Rubén Calvo
2017-08-07 13:19:05 +02:00
parent 9b7a5fc2a5
commit cd2bae63cb
2 changed files with 4 additions and 4 deletions

View File

@@ -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)
{