mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-22 11:18:52 +00:00
Merge branch 'ticket/paul999/9696' into develop-olympus
* ticket/paul999/9696: [ticket/9696] Surpress is_dir() notice when using SQLite with open_basedir.
This commit is contained in:
commit
371e54e054
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
// 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)))
|
||||
if (!@file_exists($resolved) || (!@is_dir($resolved . '/') && !is_file($resolved)))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue