mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11997] Remove obsolete if statement in phpbb_own_realpath()
PHPBB3-11997
This commit is contained in:
parent
60dda5577d
commit
6bb9bce40e
1 changed files with 0 additions and 10 deletions
|
@ -994,16 +994,6 @@ function phpbb_own_realpath($path)
|
||||||
$resolved .= $bit . (($i == $max) ? '' : '/');
|
$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
|
// Put the slashes back to the native operating systems slashes
|
||||||
$resolved = str_replace('/', DIRECTORY_SEPARATOR, $resolved);
|
$resolved = str_replace('/', DIRECTORY_SEPARATOR, $resolved);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue