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:
parent
c1b5aede30
commit
82587d8708
@ -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);
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user