From 30d0c84ece8ba21ae8dbd1ddb07bebe762dabd4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Fri, 22 May 2015 16:16:17 +0200 Subject: [PATCH] I don't know how to count... :fired: --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 911662521ad..60236aa0e3a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -295,7 +295,7 @@ Discourse::Application.routes.draw do # used to download attachments get "uploads/:site/original/:dir1/:dir2/:sha.:extension" => "uploads#show", constraints: { site: /\w+/, dir1: /[a-f0-9]/, dir2: /[a-f0-9]/, sha: /[a-f0-9]{40}/, extension: /\w{2,}/ } # used to download attachments (old route) - get "uploads/:site/:id/:sha.:extension" => "uploads#show", constraints: { site: /\w+/, id: /\d+/, sha: /[a-f0-9]{15}/, extension: /\w{2,}/ } + get "uploads/:site/:id/:sha.:extension" => "uploads#show", constraints: { site: /\w+/, id: /\d+/, sha: /[a-f0-9]{16}/, extension: /\w{2,}/ } get "posts" => "posts#latest" get "posts/by_number/:topic_id/:post_number" => "posts#by_number"