1
1
Fork 0

Merge pull request #10810 from MrPetovan/bug/photo-route

Fix regular expression in the user avatar photo routes
This commit is contained in:
Michael Vogel 2021-10-03 13:40:14 +02:00 committed by GitHub
commit ec4034ad14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]],
],