From 6e51317ce57b019a26781805734177c2999efdd6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 9 Oct 2019 19:41:19 +0100 Subject: [PATCH] Extra check to avoid infinite loop --- webinterface.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webinterface.py b/webinterface.py index 8f9ede041..a493b4fde 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1640,7 +1640,10 @@ def addEmojiToDisplayName(baseDir: str,httpPrefix: str, \ if '://' in displayName: break emojiStr=displayName.split(':')[1] + prevDisplayName=displayName displayName=displayName.replace(':'+emojiStr+':','').strip() + if prevDisplayName==displayName: + break print('TAG: displayName after tags 3: '+displayName) print('TAG: displayName after tag replacements: '+displayName) return displayName