Extra bad html tag

main2
Bob Mottram 2019-09-30 12:12:02 +01:00
parent 1fa22a6777
commit b0c1cb5712
1 changed files with 1 additions and 1 deletions

View File

@ -1119,7 +1119,7 @@ def validPostContent(messageJson: {},maxMentions: int) -> bool:
if not messageJson['object'].get('content'):
return True
# check for bad html
invalidStrings=['<script>','<style>','</html>','</body>','<br>','<hr>']
invalidStrings=['<script>','<canvas>','<style>','</html>','</body>','<br>','<hr>']
for badStr in invalidStrings:
if badStr in messageJson['object']['content']:
if messageJson['object'].get('id'):