From 30178358dc6f10ee6d4a589d046dc1bffcbb5e25 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 6 Aug 2014 18:40:15 +0200 Subject: [PATCH] Fix handling of "0" as an url part Previously, any url part with value "0" was discarded, now they will be preserved. --- wcfsetup/install/files/lib/system/request/Route.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/request/Route.class.php b/wcfsetup/install/files/lib/system/request/Route.class.php index fc765e958c..d284fef531 100644 --- a/wcfsetup/install/files/lib/system/request/Route.class.php +++ b/wcfsetup/install/files/lib/system/request/Route.class.php @@ -203,7 +203,7 @@ class Route { protected function getParts($requestURL) { $urlParts = preg_split('~(\/|\-|\_|\.)~', $requestURL); foreach ($urlParts as $index => $part) { - if (empty($part)) { + if (!mb_strlen($part)) { unset($urlParts[$index]); } } -- 2.20.1