mirror of https://gitlab.com/bashrc2/epicyon
Replace semicolons on outgoing posts
parent
87ca915e72
commit
2752bddde1
|
@ -77,6 +77,13 @@ def postMessageToOutbox(messageJson: {}, postToNickname: str,
|
|||
if messageJson.get('object'):
|
||||
if isinstance(messageJson['object'], dict):
|
||||
if messageJson['object'].get('content'):
|
||||
# replace all semicolons, because for mysterious
|
||||
# reasons this appears to create a problem for
|
||||
# webservers receiving the POST
|
||||
if ';' in messageJson['object']['content']:
|
||||
messageJson['object']['content'] = \
|
||||
messageJson['object']['content'].replace(';', ',')
|
||||
|
||||
if dangerousMarkup(messageJson['object']['content'],
|
||||
allowLocalNetworkAccess):
|
||||
print('POST to outbox contains dangerous markup: ' +
|
||||
|
|
Loading…
Reference in New Issue