Permalink
Browse files

Use xhtml.script(:src => :symbol) not to escape the ampersand in '&er…

…ror=...'
  • Loading branch information...
1 parent 045e10b commit 3e1bed801cb9d0f1d994981d352aebf94de812c7 @gaizka committed Nov 11, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/recaptcha.rb
View
@@ -26,7 +26,7 @@ def recaptcha_tags(options = {})
xhtml.text! "Recaptcha.create('#{key}', document.getElementById('dynamic_recaptcha') );"
end
else
- xhtml.script(:type => "text/javascript", :src => "#{uri}/challenge?k=#{key}&error=#{error}") {}
+ xhtml.script(:type => "text/javascript", :src => :"#{uri}/challenge?k=#{key}&error=#{error}") {}
unless options[:noscript] == false
xhtml.noscript do
xhtml.iframe(:src => "#{uri}/noscript?k=#{key}",

0 comments on commit 3e1bed8

Please sign in to comment.