mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/9696] Surpress is_dir() notice when using SQLite with open_basedir.
PHPBB3-9696
This commit is contained in:
committed by
Andreas Fischer
parent
2e5217f773
commit
5cdf27edef
@@ -1052,7 +1052,7 @@ function phpbb_own_realpath($path)
|
|||||||
// @todo If the file exists fine and open_basedir only has one path we should be able to prepend it
|
// @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...
|
// because we must be inside that basedir, the question is where...
|
||||||
// @internal The slash in is_dir() gets around an open_basedir restriction
|
// @internal The slash in is_dir() gets around an open_basedir restriction
|
||||||
if (!@file_exists($resolved) || (!is_dir($resolved . '/') && !is_file($resolved)))
|
if (!@file_exists($resolved) || (!@is_dir($resolved . '/') && !is_file($resolved)))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user