diff --git a/system/router.php b/system/router.php index 4f3b6321..60d5268a 100644 --- a/system/router.php +++ b/system/router.php @@ -118,7 +118,7 @@ $dispatcher = FastRoute\cachedDispatcher(function (FastRoute\RouteCollector $r) $aliases = [ [':int', ':string', ':alphanum'], - [':\d+', ':[A-Za-z0-9-_%+\']+}', ':[A-Za-z0-9]+'], + [':\d+', ':[A-Za-z0-9-_%+\']+', ':[A-Za-z0-9]+'], ]; // apply aliases diff --git a/system/routes.php b/system/routes.php index c6dfa780..28d03168 100644 --- a/system/routes.php +++ b/system/routes.php @@ -30,7 +30,7 @@ return [ ['GET', 'account/confirm_email/{hash:[A-Za-z0-9-_]+}[/]', 'account/confirm_email.php'], ['GET', 'bans/{page:\d+}[/]', 'bans.php'], - [['GET', 'POST'], 'characters[/{name:string]', 'characters.php'], + [['GET', 'POST'], 'characters[/{name:string}]', 'characters.php'], ['GET', 'changelog[/{page:int}]', 'changelog.php'], ['GET', 'creatures[/{name:string}]', 'creatures.php'],