]> git.mxchange.org Git - friendica.git/commitdiff
add regex for route
authornupplaPhil <admin+github@philipp.info>
Fri, 31 Jan 2020 23:22:56 +0000 (00:22 +0100)
committernupplaPhil <admin+github@philipp.info>
Fri, 31 Jan 2020 23:22:56 +0000 (00:22 +0100)
static/routes.config.php

index f3e8fdf83acd671056577833c9169bc3d466bcfb..eaaa3bd941471bb8f19474f1566cdaa73cb31548 100644 (file)
@@ -128,7 +128,8 @@ return [
        '/followers/{owner}' => [Module\Followers::class,       [R::GET]],
        '/following/{owner}' => [Module\Following::class,       [R::GET]],
        '/friendica[/json]'  => [Module\Friendica::class,       [R::GET]],
-       '/fsuggest/{contact}' => [Module\FriendSuggest::class,  [R::GET, R::POST]],
+
+       '/fsuggest/{contact:\d+}' => [Module\FriendSuggest::class,  [R::GET, R::POST]],
 
        '/group'              => [
                '[/]'                        => [Module\Group::class, [R::GET, R::POST]],