Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

RecaptchaOptions escaped by XmlMarkup

#6

recaptcha.rb, line 20

The text! method escapes the passed string resulting in an invalid JavaScript.

I've replaced line 20 by: xhtml.script(:type => "text/javascript"){ xhtml << "var RecaptchaOptions = #{options[:display].to_json};\n"}

and it works fine with my Rails 2.2.1 application.

Thanks for your plugin! Martin

Reported by martoche · November 19th, 2008 @ 04:30 AM

State: new
Milestone: none
Assigned to: Jason L Perry Jason L Perry

Activity

  1. Alex
    Alex

    I just ran into this today after updating hpricot :) Looks like text! escape only showing up when you have fast_xs available on your system. BTW new version of hpricot installs it.

    rails/activesupport/lib/active_support/core_ext/string/xchar.rb

    trying to load fast_xs and uses it if it is available.

    I think the fix described in a prior comment is a right way to go, just figured I will give a bit more description on how to reproduce the bug.

    December 8th, 2008 @ 03:19 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.