From 578ad8d9787fd429780b34e64b1337d53c4ed9df Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 2 Jul 2015 15:51:00 +0200 Subject: [PATCH] Small optimization for 1cca5cb --- .../install/files/lib/system/request/RouteHandler.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/request/RouteHandler.class.php b/wcfsetup/install/files/lib/system/request/RouteHandler.class.php index c6ee9d9c7b..e5cf7dfe96 100644 --- a/wcfsetup/install/files/lib/system/request/RouteHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RouteHandler.class.php @@ -294,9 +294,10 @@ class RouteHandler extends SingletonFactory { $pos = mb_strpos($component, '='); if ($pos !== false && $pos + 1 === mb_strlen($component)) { $component = mb_substr($component, 0, -1); + $pos = false; } - if (mb_strpos($component, '=') === false) { + if ($pos === false) { self::$pathInfo = urldecode($component); break; } -- 2.20.1