about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-08-01 14:08:29 -0500
committermultiple creatures <dev@multiple-creature.party>2019-08-01 14:08:29 -0500
commit720207cf4b6d4db5e9b0ba10ad8b9b59ce730784 (patch)
tree4476a0e99d92b03862e2dd7922fb3324542174e0 /app/lib
parentc4bf59ed9c9b1dba6b0c18aca9fac0438db110ab (diff)
fix borkage caused by query string sanitization sometimes returning `nil`
Diffstat (limited to 'app/lib')
-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