From dc135f49c0fb4ae60cda4c41b7059f380e474440 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 9 Oct 2019 19:39:15 +0100 Subject: [PATCH] Avoid infinite loop --- webinterface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webinterface.py b/webinterface.py index 022a8f04..8f9ede04 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1637,6 +1637,8 @@ def addEmojiToDisplayName(baseDir: str,httpPrefix: str, \ # remove any stray emoji while ':' in displayName: + if '://' in displayName: + break emojiStr=displayName.split(':')[1] displayName=displayName.replace(':'+emojiStr+':','').strip() print('TAG: displayName after tags 3: '+displayName)