Merge pull request #6804 from cmrd-senya/patch-1

the special case is not required anymore
This commit is contained in:
Dennis Schubert 2016-04-21 07:26:08 +02:00
commit 7dbd94b326

View file

@ -43,12 +43,6 @@ module Diaspora
def escape
if options[:escape]
@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