diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-01-16 13:56:25 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-01-16 13:56:25 +0000 |
commit | cc91fa28cd0e64576a5f2d8e5c2cb3629636ee74 (patch) | |
tree | cbb1aef74227804182b5e1ac003beddb26a158d4 /lib/use_spans_for_errors.rb | |
parent | 5de48637d9efa6236d2f8478126d67fefe416096 (diff) | |
parent | a67666e34c280d2b9eb613f57d96ba4ee5fcd749 (diff) |
Merge remote-tracking branch 'openaustralia_github/rails_xss' into develop
Diffstat (limited to 'lib/use_spans_for_errors.rb')
-rw-r--r-- | lib/use_spans_for_errors.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/use_spans_for_errors.rb b/lib/use_spans_for_errors.rb index cda05c588..135453f78 100644 --- a/lib/use_spans_for_errors.rb +++ b/lib/use_spans_for_errors.rb @@ -8,5 +8,5 @@ # # See http://dev.rubyonrails.org/ticket/2210 -ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| %(<span class="fieldWithErrors">#{html_tag}</span>)} +ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| %(<span class="fieldWithErrors">#{html_tag}</span>).html_safe} |