1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

deleting more crazy

This commit is contained in:
Aaron Patterson 2010-10-04 19:52:17 -07:00
parent 333a5659e8
commit 714fea4540

View file

@ -495,13 +495,11 @@ module ActionView
end
"<script type=\"#{Mime::JS}\">eval(decodeURIComponent('#{string}'))</script>".html_safe
elsif encode == "hex"
email_address_encoded = ''
email_address_obfuscated.each_byte do |c|
email_address_encoded << sprintf("&#%d;", c)
end
email_address_encoded = email_address_obfuscated.unpack('C*').map {|c|
sprintf("&#%d;", c)
}.join
protocol = 'mailto:'
protocol.each_byte { |c| string << sprintf("&#%d;", c) }
string += 'mailto:'.unpack('C*').map { |c| sprintf("&#%d;", c) }.join
email_address.each_byte do |c|
char = c.chr