Small optimization for 1cca5cb
authorAlexander Ebert <ebert@woltlab.com>
Thu, 2 Jul 2015 13:51:00 +0000 (15:51 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 2 Jul 2015 13:51:00 +0000 (15:51 +0200)
wcfsetup/install/files/lib/system/request/RouteHandler.class.php

index c6ee9d9c7b8a5b7f3be49b6eda488c47f1779e9e..e5cf7dfe96d13ed753257a7f8148d5a38f34b94f 100644 (file)
@@ -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;
                                                }