better patch for ActiveSupport

This commit is contained in:
danielgrippi 2012-03-21 09:56:26 -07:00
parent 9c0ed946a7
commit 03409495f9

View file

@ -8,7 +8,7 @@ class ERB
if s.html_safe? if s.html_safe?
s s
else else
s.gsub(/[&"><]/) { |special| HTML_ESCAPE[special] }.html_safe silence_warnings { s.gsub(/[&"><]/n) { |special| HTML_ESCAPE[special] }.html_safe }
end end
end end
end end