aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorSergey Nartimov <just.lest@gmail.com>2012-01-13 13:49:16 +0300
committerSergey Nartimov <just.lest@gmail.com>2012-01-13 14:33:40 +0300
commit41c3d4ad8272329a02270b193f02073a6f31d307 (patch)
treef7861eb96a1eebb2d6de46b2aab8600b81ca69cb /actionpack
parent8fd8f99e1eb91198dca953b8268992131d783a21 (diff)
downloadrails-41c3d4ad8272329a02270b193f02073a6f31d307.tar.gz
rails-41c3d4ad8272329a02270b193f02073a6f31d307.tar.bz2
rails-41c3d4ad8272329a02270b193f02073a6f31d307.zip
use Rack::Utils.escape_path
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/url_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb
index 5af5965c36..6fdb0cde7d 100644
--- a/actionpack/lib/action_view/helpers/url_helper.rb
+++ b/actionpack/lib/action_view/helpers/url_helper.rb
@@ -503,7 +503,7 @@ module ActionView
extras = %w{ cc bcc body subject }.map { |item|
option = html_options.delete(item) || next
- "#{item}=#{Rack::Utils.escape(option).gsub("+", "%20")}"
+ "#{item}=#{Rack::Utils.escape_path(option)}"
}.compact
extras = extras.empty? ? '' : '?' + ERB::Util.html_escape(extras.join('&'))