Allow outgoing semicolons

main
Bob Mottram 2021-03-01 10:07:47 +00:00
parent 6baef31a36
commit 441383cbd8
1 changed files with 0 additions and 5 deletions

View File

@ -77,11 +77,6 @@ def postMessageToOutbox(messageJson: {}, postToNickname: str,
if messageJson.get('object'):
if isinstance(messageJson['object'], dict):
if messageJson['object'].get('content'):
# semicolons cause trouble, so escape them
if ';' in messageJson['object']['content']:
messageJson['object']['content'] = \
messageJson['object']['content'].replace(';', '%3B')
if dangerousMarkup(messageJson['object']['content'],
allowLocalNetworkAccess):
print('POST to outbox contains dangerous markup: ' +