diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/lib/sanitize_config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize_config.rb index 882b59b79..4ec42d64b 100644 --- a/app/lib/sanitize_config.rb +++ b/app/lib/sanitize_config.rb @@ -27,7 +27,7 @@ class Sanitize return if node['href'].blank? || node.text.blank? class_list = node['class']&.split(/[\t\n\f\r ]/) - return if class_list && class_list.include?('mention') || class_list.include?('hashtag') + return if class_list && (class_list.include?('mention') || class_list.include?('hashtag')) # href matches link text verbatim? href = node['href'] |