Normalize paths before dirname/basename operations.
This commit is contained in:
myl7 2020-11-07 22:58:22 +08:00
parent d81d8a9298
commit 136c654432
1 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,8 @@ class Archive {
continue;
}
$d = Util::normalize_path(dirname($href), true);
$href = Util::normalize_path($href, false);
$d = dirname($href);
$n = basename($href);
if ($this->context->is_managed_href($d) && !$this->context->is_hidden($n)) {