Skip to content

Commit

Permalink
the special case is not required anymore
Browse files Browse the repository at this point in the history
fix #5678
  • Loading branch information
cmrd-senya committed Apr 19, 2016
1 parent b0e608a commit 0c177aa
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/diaspora/message_renderer.rb
Expand Up @@ -43,12 +43,6 @@ def append_and_truncate
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

Expand Down

0 comments on commit 0c177aa

Please sign in to comment.