Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit f1e4da5

Browse files
committed
Fix #1180: Unpatch the path for zip files before we check against the content fiter path
1 parent 67e56ae commit f1e4da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/core/classes/class.AJXP_MetaStreamWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ protected static function translateScheme($url, $crtInstance = null){
124124
if (!empty($baseDir) || $baseDir != "/") {
125125
$crtPath = parse_url($url, PHP_URL_PATH);
126126
$crtBase = basename($crtPath);
127-
if (!empty($crtPath) && $crtPath != "/" && $crtBase != $contentFilter->getUniquePath() && $crtBase != ".ajxp_meta") {
127+
if (!empty($crtPath) && $crtPath != "/" && fsAccessWrapper::unPatchPathForBaseDir($crtBase) != $contentFilter->getUniquePath() && $crtBase != ".ajxp_meta") {
128128
throw new Exception("Cannot find file " . $crtBase);
129129
}
130130
// Prepend baseDir in path

0 commit comments

Comments
 (0)