From: Ævar Arnfjörð Bjarmason Date: Thu, 2 Jul 2009 21:44:26 +0000 (+0000) Subject: Changeset [16271] changed "=" in the shortlink to "-" but didn't X-Git-Tag: live~6863 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/e7f5f4285635c1c4dbc89b5b0a705de4eeb266b5 Changeset [16271] changed "=" in the shortlink to "-" but didn't update the routes to match. Change the regex to accept [=-]* ("=" since we want to be backwards compatable) --- diff --git a/config/routes.rb b/config/routes.rb index 23d323596..d60b52b0b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -115,7 +115,7 @@ ActionController::Routing::Routes.draw do |map| map.connect '/forgot-password.html', :controller => 'user', :action => 'lost_password' # permalink - map.connect '/go/:code', :controller => 'site', :action => 'permalink', :code => /[a-zA-Z0-9_@]+=*/ + map.connect '/go/:code', :controller => 'site', :action => 'permalink', :code => /[a-zA-Z0-9_@]+[=-]*/ # traces map.connect '/traces', :controller => 'trace', :action => 'list'