From 61301b3f98e058d94ebefee1504f8d15279fcfa2 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Wed, 25 Jun 2014 02:47:46 +0200 Subject: [PATCH] Fix path normalization (broke paths containing '+' characters). --- src/_h5ai/server/php/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_h5ai/server/php/index.php b/src/_h5ai/server/php/index.php index 3b4dcace..b5459e9c 100644 --- a/src/_h5ai/server/php/index.php +++ b/src/_h5ai/server/php/index.php @@ -2,7 +2,7 @@ function normalize_path($path, $trailing_slash = false) { - $path = preg_replace("#\\+|/+#", "/", $path); + $path = preg_replace("#\\\\+|/+#", "/", $path); return preg_match("#^(\w:)?/$#", $path) ? $path : (rtrim($path, "/") . ($trailing_slash ? "/" : "")); }