aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/url.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2011-10-13 21:41:30 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2011-10-13 21:41:30 -0700
commitbceec4c3c3c8bb8d0747e0c58fd539f46228c37b (patch)
tree7f34a84c6094d308ed342333147d6d7e5869d7e0 /actionpack/lib/action_dispatch/http/url.rb
parentec371606640f87289f4821f5f197709dd0ebe6f2 (diff)
downloadrails-bceec4c3c3c8bb8d0747e0c58fd539f46228c37b.tar.gz
rails-bceec4c3c3c8bb8d0747e0c58fd539f46228c37b.tar.bz2
rails-bceec4c3c3c8bb8d0747e0c58fd539f46228c37b.zip
/ is allowed in URI fragments
Diffstat (limited to 'actionpack/lib/action_dispatch/http/url.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/url.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/url.rb b/actionpack/lib/action_dispatch/http/url.rb
index 170c68f3e0..c8ddd07bfa 100644
--- a/actionpack/lib/action_dispatch/http/url.rb
+++ b/actionpack/lib/action_dispatch/http/url.rb
@@ -45,7 +45,7 @@ module ActionDispatch
rewritten_url << (options[:trailing_slash] ? path.sub(/\?|\z/) { "/" + $& } : path)
rewritten_url << "?#{params.to_query}" unless params.empty?
- rewritten_url << "##{Journey::Router::Utils.escape_uri(options[:anchor].to_param.to_s)}" if options[:anchor]
+ rewritten_url << "##{Journey::Router::Utils.escape_fragment(options[:anchor].to_param.to_s)}" if options[:anchor]
rewritten_url
end