Browse files

use Rack::Utils.escape_path

  • Loading branch information...
1 parent 8fd8f99 commit 41c3d4ad8272329a02270b193f02073a6f31d307 @lest lest committed Jan 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/url_helper.rb
View
2 actionpack/lib/action_view/helpers/url_helper.rb
@@ -503,7 +503,7 @@ def mail_to(email_address, name = nil, html_options = {})
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('&'))

0 comments on commit 41c3d4a

Please sign in to comment.