aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-09-22 12:05:01 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-09-22 12:05:01 +0200
commit53aa79cd296938283e73f5a23475d3c40dd3c9be (patch)
treeaf3cae4a3a02f1854823ec834b51215ac63ab56d /phpBB/phpbb
parent0b2a0cc9b462fc158ed1b059426868cf97a16105 (diff)
parent2224a76c24319b7f9456ecc42f16e22d38178ee0 (diff)
downloadforums-53aa79cd296938283e73f5a23475d3c40dd3c9be.tar
forums-53aa79cd296938283e73f5a23475d3c40dd3c9be.tar.gz
forums-53aa79cd296938283e73f5a23475d3c40dd3c9be.tar.bz2
forums-53aa79cd296938283e73f5a23475d3c40dd3c9be.tar.xz
forums-53aa79cd296938283e73f5a23475d3c40dd3c9be.zip
Merge pull request #5673 from AlfredoRamos/ticket/15643
[ticket/15643] Fix open_basedir warnings
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/filesystem/filesystem.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/filesystem/filesystem.php b/phpBB/phpbb/filesystem/filesystem.php
index bfafdf5ddd..c5be284d8c 100644
--- a/phpBB/phpbb/filesystem/filesystem.php
+++ b/phpBB/phpbb/filesystem/filesystem.php
@@ -835,7 +835,7 @@ class filesystem implements filesystem_interface
$current_path = $resolved_path . '/' . $path_part;
// Resolve symlinks
- if (is_link($current_path))
+ if (@is_link($current_path))
{
if (!function_exists('readlink'))
{
@@ -872,12 +872,12 @@ class filesystem implements filesystem_interface
$resolved_path = false;
}
- else if (is_dir($current_path . '/'))
+ else if (@is_dir($current_path . '/'))
{
$resolved[] = $path_part;
$resolved_path = $current_path;
}
- else if (is_file($current_path))
+ else if (@is_file($current_path))
{
$resolved[] = $path_part;
$resolved_path = $current_path;