the special case is not required anymore

fix #5678
This commit is contained in:
Senya 2016-04-19 08:28:47 +03:00
parent b0e608aa38
commit 0c177aaddf

View file

@ -43,12 +43,6 @@ module Diaspora
def escape def escape
if options[:escape] if options[:escape]
@message = ERB::Util.html_escape_once message @message = ERB::Util.html_escape_once message
# Special case Hex entities since escape_once
# doesn't catch them.
# TODO: Watch for https://github.com/rails/rails/pull/9102
# on whether this can be removed
@message = message.gsub(/&(#[xX][\dA-Fa-f]{1,4});/, '&\1;')
end end
end end