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)
This commit is contained in:
Ævar Arnfjörð Bjarmason 2009-07-02 21:44:26 +00:00
parent b34c31bf8d
commit e7f5f42856

View file

@ -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'