forked from indymedia/epicyon
More html validity checks
parent
2d5f3276f6
commit
72fc823c51
3
inbox.py
3
inbox.py
|
@ -1600,7 +1600,8 @@ def validPostContent(baseDir: str, nickname: str, domain: str,
|
||||||
messageJson['object']['content']):
|
messageJson['object']['content']):
|
||||||
return True
|
return True
|
||||||
# check for bad html
|
# check for bad html
|
||||||
invalidStrings = ('<script>', '<canvas>', '<style>',
|
invalidStrings = ('<script>', '</script>', '</canvas>',
|
||||||
|
'</style>', '</abbr>',
|
||||||
'</html>', '</body>', '<br>', '<hr>')
|
'</html>', '</body>', '<br>', '<hr>')
|
||||||
for badStr in invalidStrings:
|
for badStr in invalidStrings:
|
||||||
if badStr in messageJson['object']['content']:
|
if badStr in messageJson['object']['content']:
|
||||||
|
|
Loading…
Reference in New Issue