]> git.mxchange.org Git - friendica.git/commitdiff
Fix regular expression in the user avatar photo routes
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 3 Oct 2021 11:37:30 +0000 (07:37 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 3 Oct 2021 11:37:30 +0000 (07:37 -0400)
static/routes.config.php

index a76b19d88d3304ae78d585bd2d8963102c075d21..9dbd2a615b42b1442152e0aa7bc997264a2d4a14 100644 (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]],
        ],