aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2010-06-26 01:54:13 +0100
committerJeremy Kemper <jeremy@bitsweat.net>2010-06-25 18:05:40 -0700
commitbba19603c27e0439eb22a9bce7e3adf6924b224b (patch)
tree429cae57c7d546e0bdafd96e70c1a0db3e85273f /actionpack/lib/action_dispatch/routing
parent6e655732226eef6fa04d8fc0c4ee1f0436688c49 (diff)
downloadrails-bba19603c27e0439eb22a9bce7e3adf6924b224b.tar.gz
rails-bba19603c27e0439eb22a9bce7e3adf6924b224b.tar.bz2
rails-bba19603c27e0439eb22a9bce7e3adf6924b224b.zip
URL fragments should not have safe characters escaped. Ref: Appendix A, http://tools.ietf.org/rfc/rfc3986.txt
[#4762 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 57a73dde75..97fe137633 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -447,7 +447,7 @@ module ActionDispatch
# ROUTES TODO: This can be called directly, so script_name should probably be set in the router
rewritten_url << (options[:trailing_slash] ? path.sub(/\?|\z/) { "/" + $& } : path)
- rewritten_url << "##{Rack::Utils.escape(options[:anchor].to_param.to_s)}" if options[:anchor]
+ rewritten_url << "##{Rack::Mount::Utils.escape_uri(options[:anchor].to_param.to_s)}" if options[:anchor]
rewritten_url
end