- Affected version
- 2.2.11
Code:
RuntimeException: SplFileInfo::isFile(): open_basedir restriction in effect. File(/<tempdir>/..) is not within the allowed path(s)
#0 src/XF/Util/File.php(146): SplFileInfo->isFile()
Changing
PHP:
if (!$file->isFile() || $file->getFilename() == 'index.html')
to
PHP:
if ($file->isDot() || !$file->isFile() || $file->getFilename() === 'index.html')
seems to fix this.