From 363f1f315d9e3d070a2c8f7d657217b9c2afc3f6 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 26 Mar 2023 14:57:03 +0200 Subject: [PATCH] minor improvement --- files/helpers/sanitize.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 9c5ae1947..5bb7b9880 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -323,6 +323,7 @@ def handle_youtube_links(url): @with_sigalrm_timeout(10) def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_emojis=False, snappy=False, chat=False, blackjack=None): sanitized = sanitized.strip() + if not sanitized: return '' if blackjack and execute_blackjack(g.v, None, sanitized, blackjack): sanitized = 'g'