Check for invalid characters in emoji reactions

main
Bob Mottram 2021-11-11 10:35:05 +00:00
parent 862403054a
commit ec5245cd1c
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@ from utils import loadJson
from utils import saveJson from utils import saveJson
from utils import removePostFromCache from utils import removePostFromCache
from utils import getCachedPostFilename from utils import getCachedPostFilename
from utils import containsInvalidChars
from posts import sendSignedJson from posts import sendSignedJson
from session import postJson from session import postJson
from webfinger import webfingerHandle from webfinger import webfingerHandle
@ -54,6 +55,8 @@ def validEmojiContent(emojiContent: str) -> bool:
return False return False
if len(emojiRegex.findall(emojiContent)) == 0: if len(emojiRegex.findall(emojiContent)) == 0:
return False return False
if containsInvalidChars(emojiContent):
return False
return True return True