This project is archived and is in readonly mode.
Button_to does not return an HTML-safe string
-
Bruno Michel
- Tag changed from 2-3-stable, xss to 2-3-stable, patch, xss
-
Bruno Michel
No news on this ticket?
-
Michael Koziarski
- Milestone set to 2.3.6
-
Santiago Pastorino
- State changed from new to open
Yes, you're right Bruno.
First of all can you provide a failing test case?, and must say that your patch is wrong you're not on the current 2-3-stable branch.The actual code is:
"<form method=\"#{form_method}\" action=\"#{escape_once url}\" class=\"button-to\"><div>" + method_tag + tag("input", html_options) + request_token_tag + "</div></form>".html_safeand should be:
("<form method=\"#{form_method}\" action=\"#{escape_once url}\" class=\"button-to\"><div>" + method_tag + tag("input", html_options) + request_token_tag + "</div></form>").html_safenot that is html_safe not html_safe!
-
Bruno Michel
and must say that your patch is wrong you're not on the current 2-3-stable branch.
Hey, I was on the 2-3-stable when I created the patch in October last year ;-) But html_safe! has been deprecated in favor of html_safe since (in January IIRC).
First of all can you provide a failing test case?
Sure, I've attached the new patch with a unit test.
-
Bruno Michel
and must say that your patch is wrong you're not on the current 2-3-stable branch.
Hey, I was on the 2-3-stable when I created the patch in October last year ;-) But html_safe! has been deprecated in favor of html_safe since (in January IIRC).
First of all can you provide a failing test case?
Sure, I've attached the new patch with a unit test.
-
Bruno Michel
Hum, it looks like lighthouse has buged, and my last comment and patch were posted two times.
-
Santiago Pastorino
- State changed from open to verified
-
Santiago Pastorino
- State changed from verified to committed
