Skip to content

Commit

Permalink
core_image.phar was being looked up at the wrong path
Browse files Browse the repository at this point in the history
Correcting a regression from e7a79ed

Fixes: #4164
  • Loading branch information
Deltik committed May 13, 2020
1 parent c1b5aed commit 82587d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e107_handlers/e107_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,7 @@ public static function getFile($singleton = false)
*/
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);

Expand Down
2 changes: 1 addition & 1 deletion e107_handlers/e_file_inspector.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function __construct($database)
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)
Expand Down

0 comments on commit 82587d8

Please sign in to comment.