From: Alexander Ebert Date: Thu, 2 Jul 2015 13:51:00 +0000 (+0200) Subject: Small optimization for 1cca5cb X-Git-Tag: 2.1.6~20 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=578ad8d9787fd429780b34e64b1337d53c4ed9df;p=GitHub%2FWoltLab%2FWCF.git Small optimization for 1cca5cb --- 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; }