Closed saschpe closed 13 years ago
Consider the following template snippet:
<%= linkto 'foo raw bar', 'foo' %>
This fails in version rails_xss-0.1.3 in lib/rails_xss/erubis.rb:15 in the regex query that looks for 'raw'. It should also check if the match is inside a string expression.
Seems to be fixed in the rails/rails_xss fork
Consider the following template snippet:
<%= linkto 'foo raw bar', 'foo' %>
This fails in version rails_xss-0.1.3 in lib/rails_xss/erubis.rb:15 in the regex query that looks for 'raw'. It should also check if the match is inside a string expression.