1
0
Fork 0
mirror of https://github.com/lrsjng/h5ai synced 2025-12-06 08:52:45 +01:00
Normalize paths before dirname/basename operations.
This commit is contained in:
myl7 2020-11-07 22:58:22 +08:00
parent d81d8a9298
commit 136c654432

View file

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