From: Miguel Dantas Date: Tue, 23 Jul 2019 10:47:36 +0000 (+0100) Subject: [ROUTES] Fixed attachment routes, broken by channges in fa378462f4 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e3921604355eea5f7d0df29a752f1dd30187ec9b;p=quix0rs-gnu-social.git [ROUTES] Fixed attachment routes, broken by channges in fa378462f4 --- diff --git a/lib/router.php b/lib/router.php index 09dc43e648..161b198318 100644 --- a/lib/router.php +++ b/lib/router.php @@ -227,8 +227,8 @@ class Router '/view' => 'attachment_view', '/download' => 'attachment_download', '/thumbnail' => 'attachment_thumbnail'] as $postfix => $action) { - foreach (['attachment' => '[0-9]+', - 'filehash' => '[A-Za-z0-9._-]+'] as $type => $match) { + foreach (['filehash' => '[A-Za-z0-9._-]{64}', + 'attachment' => '[0-9]+'] as $type => $match) { $m->connect("attachment/:{$type}{$postfix}", ['action' => $action], [$type => $match]);