aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/link_to_helper.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-09-24 19:25:50 +0000
committerfrancis <francis>2008-09-24 19:25:50 +0000
commit1969c4993bff5c31d95b405c62ec021937e841d9 (patch)
tree445221547f7d71f6ff99a57a5ee9feddeab093a2 /app/helpers/link_to_helper.rb
parentdd1aabe4f6b67ac07af322580cd1227e77c883bd (diff)
Oops
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rw-r--r--app/helpers/link_to_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index 7aacdad52..4c0516171 100644
--- a/app/helpers/link_to_helper.rb
+++ b/app/helpers/link_to_helper.rb
@@ -5,7 +5,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: link_to_helper.rb,v 1.42 2008-09-24 19:23:17 francis Exp $
+# $Id: link_to_helper.rb,v 1.43 2008-09-24 19:25:50 francis Exp $
module LinkToHelper
@@ -123,7 +123,7 @@ module LinkToHelper
# and also 3.3 of http://www.ietf.org/rfc/rfc2396.txt
# It turns out this is a regression in Rails 2.1, caused by this bug fix:
# http://rails.lighthouseapp.com/projects/8994/tickets/144-patch-bug-in-rails-route-globbing
- url.sub!("%2F", "/")
+ url.gsub!("%2F", "/")
if !postfix.nil? && !postfix.empty?
url = url + "/" + postfix