From: nupplaPhil Date: Fri, 31 Jan 2020 23:22:56 +0000 (+0100) Subject: add regex for route X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c5653d30f332e4148539fe575bc754e411739f56;p=friendica.git add regex for route --- diff --git a/static/routes.config.php b/static/routes.config.php index f3e8fdf83a..eaaa3bd941 100644 --- a/static/routes.config.php +++ b/static/routes.config.php @@ -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]],