mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
Add the test case for autolink prefix fragments
This commit is contained in:
@@ -79,6 +79,13 @@ try -fautolink 'security hole with \" in []()' \
|
||||
'[XSS](/ "\"=\"\"onmouseover='$Q'alert(String.fromCharCode(88,83,83))'$Q'")' \
|
||||
'<p><a href="/" title="\"=\"\"onmouseover='$Q'alert(String.fromCharCode(88,83,83))'$Q'">XSS</a></p>'
|
||||
|
||||
try -fautolink 'autolink and prefix fragment' \
|
||||
'xxxxxxx http://x.com/
|
||||
|
||||
xxx xxxxht' \
|
||||
'<p>xxxxxxx <a href="http://x.com/">http://x.com/</a></p>
|
||||
|
||||
<p>xxx xxxxht</p>'
|
||||
|
||||
summary $0
|
||||
exit $rc
|
||||
|
||||
Reference in New Issue
Block a user