diff options
author | Marc Alexander <admin@m-a-styles.de> | 2013-11-10 12:56:09 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2013-11-10 12:56:09 +0100 |
commit | 6bb9bce40e0831e449d1843901a485eef66206d6 (patch) | |
tree | d7eff2d852d43e274263666c3f4d50876c8dc163 /phpBB/includes | |
parent | 60dda5577dfcbb3c5aac0fdd2a052e12293061a5 (diff) | |
download | forums-6bb9bce40e0831e449d1843901a485eef66206d6.tar forums-6bb9bce40e0831e449d1843901a485eef66206d6.tar.gz forums-6bb9bce40e0831e449d1843901a485eef66206d6.tar.bz2 forums-6bb9bce40e0831e449d1843901a485eef66206d6.tar.xz forums-6bb9bce40e0831e449d1843901a485eef66206d6.zip |
[ticket/11997] Remove obsolete if statement in phpbb_own_realpath()
PHPBB3-11997
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 744e610f32..229e856d05 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -994,16 +994,6 @@ function phpbb_own_realpath($path) $resolved .= $bit . (($i == $max) ? '' : '/'); } - // @todo If the file exists fine and open_basedir only has one path we should be able to prepend it - // because we must be inside that basedir, the question is where... - // @internal The slash in is_dir() gets around an open_basedir restriction - if (!@file_exists($resolved) || (!@is_dir($resolved . '/') && !is_file($resolved))) - { - // In order to allow proper URL rewriting we need to allow - // paths that are non-existent - //return false; - } - // Put the slashes back to the native operating systems slashes $resolved = str_replace('/', DIRECTORY_SEPARATOR, $resolved); |