From f426a5bd980c6848275c728b1d59c1fb214a72d7 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 3 Oct 2021 07:37:30 -0400 Subject: [PATCH] Fix regular expression in the user avatar photo routes --- static/routes.config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/routes.config.php b/static/routes.config.php index a76b19d88d..9dbd2a615b 100644 --- a/static/routes.config.php +++ b/static/routes.config.php @@ -373,10 +373,10 @@ return [ '/photo' => [ '/{name}' => [Module\Photo::class, [R::GET]], // User Id Fallback, to remove after version 2021.12 - '/{type}/{uid_ext:\d+}' => [Module\Photo::class, [R::GET]], + '/{type}/{uid_ext:\d+\..*}' => [Module\Photo::class, [R::GET]], '/{type}/{nickname_ext}' => [Module\Photo::class, [R::GET]], // User Id Fallback, to remove after version 2021.12 - '/{type}/{customsize}/{uid_ext:\d+}' => [Module\Photo::class, [R::GET]], + '/{type}/{customsize}/{uid_ext:\d+\..*}' => [Module\Photo::class, [R::GET]], '/{type}/{customsize}/{nickname_ext}' => [Module\Photo::class, [R::GET]], ],