about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/lib/sanitize_config.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize_config.rb
index 914db17b1..3400070a0 100644
--- a/app/lib/sanitize_config.rb
+++ b/app/lib/sanitize_config.rb
@@ -38,6 +38,7 @@ class Sanitize
 
       # href matches link text with sanitized query string?
       text = Sanitize::sanitize_query_string(node.text.strip)
+      return if text.blank?
       if href == text
         node.inner_html = "\u2728 #{node.inner_html}"
         return