first commit
This commit is contained in:
14
htmlpurifier-4.10.0/tests/HTMLPurifier/HTMLT/safe-iframe.htmlt
Executable file
14
htmlpurifier-4.10.0/tests/HTMLPurifier/HTMLT/safe-iframe.htmlt
Executable file
@ -0,0 +1,14 @@
|
||||
--INI--
|
||||
HTML.SafeIframe = true
|
||||
URI.SafeIframeRegexp = "%(^http://www.example.com/|^https?://dev.example.com/)%"
|
||||
--HTML--
|
||||
<iframe src="http://www.example.com/"></iframe>
|
||||
<iframe src="http://malicious.host.com/?http://www.example.com/"></iframe>
|
||||
<iframe src="http://dev.example.com/"></iframe>
|
||||
<iframe src="https://dev.example.com/"></iframe>
|
||||
--EXPECT--
|
||||
<iframe src="http://www.example.com/"></iframe>
|
||||
<iframe></iframe>
|
||||
<iframe src="http://dev.example.com/"></iframe>
|
||||
<iframe src="https://dev.example.com/"></iframe>
|
||||
--# vim: et sw=4 sts=4
|
Reference in New Issue
Block a user