better patch for ActiveSupport
This commit is contained in:
parent
9c0ed946a7
commit
03409495f9
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ class ERB
|
|||
if s.html_safe?
|
||||
s
|
||||
else
|
||||
s.gsub(/[&"><]/) { |special| HTML_ESCAPE[special] }.html_safe
|
||||
silence_warnings { s.gsub(/[&"><]/n) { |special| HTML_ESCAPE[special] }.html_safe }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue