From 136c6544323d691d7f02d511d09dfc3d3826ab78 Mon Sep 17 00:00:00 2001 From: myl7 Date: Sat, 7 Nov 2020 22:58:22 +0800 Subject: [PATCH] Fix #758. Normalize paths before dirname/basename operations. --- src/_h5ai/private/php/ext/class-archive.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_h5ai/private/php/ext/class-archive.php b/src/_h5ai/private/php/ext/class-archive.php index 635082c8..e1d90013 100644 --- a/src/_h5ai/private/php/ext/class-archive.php +++ b/src/_h5ai/private/php/ext/class-archive.php @@ -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)) {