1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

core_image.phar was being looked up at the wrong path

Correcting a regression from e7a79edcd0993f8a4078ceb0321290ac7864ceba

Fixes: #4164
This commit is contained in:
Nick Liu 2020-05-13 16:13:41 -05:00
parent c1b5aede30
commit 82587d8708
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637
2 changed files with 2 additions and 2 deletions

View File

@ -1615,7 +1615,7 @@ class e107
*/
public static function getFileInspector($type = 'core')
{
$fileInspectorPath = realpath(e_SYSTEM . "core_image.phar");
$fileInspectorPath = realpath(e_SYSTEM_BASE . "core_image.phar");
/** @var e_file_inspector $fileInspector */
$fileInspector = self::getObject('e_file_inspector_json_phar', $fileInspectorPath);

View File

@ -68,7 +68,7 @@ abstract class e_file_inspector implements e_file_inspector_interface
return realpath($path) ? realpath($path) : $path;
}, [
$appRoot . "e107_config.php",
$appRoot . e107::getFolder('system') . "core_image.phar",
$appRoot . e107::getFolder('system_base') . "core_image.phar",
]
);
$this->existingInsecureFiles = array_filter($this->insecureFiles, function ($path)