Skip to content
This repository
Browse code

mail_to shouldnt include language attribute in script tag #3364 [dona…

…ld.piret@synergetek.be]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit d94af9a61f059a16306486b363640c71ee4a2810 1 parent 231a464
David Heinemeier Hansson authored February 26, 2006
2  actionpack/lib/action_view/helpers/url_helper.rb
@@ -218,7 +218,7 @@ def mail_to(email_address, name = nil, html_options = {})
218 218
           for i in 0...tmp.length
219 219
             string << sprintf("%%%x",tmp[i])
220 220
           end
221  
-          "<script type=\"text/javascript\" language=\"javascript\">eval(unescape('#{string}'))</script>"
  221
+          "<script type=\"text/javascript\">eval(unescape('#{string}'))</script>"
222 222
         elsif encode == 'hex'
223 223
           for i in 0...email_address.length
224 224
             if email_address[i,1] =~ /\w/

0 notes on commit d94af9a

Please sign in to comment.
Something went wrong with that request. Please try again.