From 2e0f220ae3cd455b9dd69ece8f9bc4506a4256fd Mon Sep 17 00:00:00 2001 From: Benny Date: Mon, 6 Jun 2016 20:33:47 +0200 Subject: [PATCH] Fix `Utils::normalizePath()` truncating zeros out of path --- system/src/Grav/Common/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Utils.php b/system/src/Grav/Common/Utils.php index e51895648e..683f17dabf 100644 --- a/system/src/Grav/Common/Utils.php +++ b/system/src/Grav/Common/Utils.php @@ -330,7 +330,7 @@ public static function normalizePath($path) $segments = explode('/', trim($path, '/')); $ret = []; foreach ($segments as $segment) { - if (($segment == '.') || empty($segment)) { + if (($segment == '.') || strlen($segment) == 0) { continue; } if ($segment == '..') {