Discard invalid routes
authorAlexander Ebert <ebert@woltlab.com>
Sun, 8 Apr 2018 21:25:24 +0000 (23:25 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 8 Apr 2018 21:25:24 +0000 (23:25 +0200)
Fixes #2553

wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php

index 2f5645124535888730466b59932437a980fc52af..155eb142da5c51dd6fce2d312d90ed9f5e860ca3 100644 (file)
@@ -63,8 +63,8 @@ class DynamicRequestRoute implements IRequestRoute {
                                                (?:-[a-z][a-z0-9]+)*
                                        )+
                                )
+                               (?:/|$)
                                (?:
-                                       /
                                        (?P<id>\d+)
                                        (?:
                                                -