mirror of https://gitlab.com/bashrc2/epicyon
Extra test
parent
eb3cc6d463
commit
b69e88aa5c
6
tests.py
6
tests.py
|
@ -4347,6 +4347,12 @@ def _test_danger_markup():
|
||||||
content = 'This is a valid message without markup'
|
content = 'This is a valid message without markup'
|
||||||
assert not dangerous_markup(content, allow_local_network_access, [])
|
assert not dangerous_markup(content, allow_local_network_access, [])
|
||||||
|
|
||||||
|
content = '<p>Gerbils of the world <a href="' + \
|
||||||
|
'https://anarcho-gerbil.com/tags/Unite" ' + \
|
||||||
|
'class="mention hashtag" rel="tag">#<span>Unite</span></a>' + \
|
||||||
|
' you have nothing to lose but your wheel</p>'
|
||||||
|
assert not dangerous_markup(content, allow_local_network_access, [])
|
||||||
|
|
||||||
content = '<p>This is a valid-looking message. But wait... ' + \
|
content = '<p>This is a valid-looking message. But wait... ' + \
|
||||||
'<script>document.getElementById("concentrated")' + \
|
'<script>document.getElementById("concentrated")' + \
|
||||||
'.innerHTML = "evil";</script></p>'
|
'.innerHTML = "evil";</script></p>'
|
||||||
|
|
Loading…
Reference in New Issue