开发者

Not rendered recaptcha in rails 3

开发者 https://www.devze.com 2023-01-16 22:09 出处:网络
Use of ra开发者_如何学Goils 3 recaptcha. In view _form.html.erb insert <%= recaptcha_tags %> But when viewing the page in the browser receives

Use of ra开发者_如何学Goils 3 recaptcha. In view _form.html.erb insert <%= recaptcha_tags %> But when viewing the page in the browser receives

&lt;script type=&quot;text/javascript&quot; src=&quot;http://api.recaptcha.net/challenge?k=**&amp;error=expression&quot;&gt;&lt;/script&gt;

As I understand it is not rendered in the browser. Why '<' instead of < ?


Try <%= raw recaptcha_tags %>. Or use html_safe inside helper. Explanation here: http://asciicasts.com/episodes/204-xss-protection-in-rails-3

0

精彩评论

暂无评论...
验证码 换一张
取 消