From c5653d30f332e4148539fe575bc754e411739f56 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Sat, 1 Feb 2020 00:22:56 +0100 Subject: [PATCH] add regex for route --- static/routes.config.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]], -- 2.39.5