Blame view

vendor/ezyang/htmlpurifier/tests/HTMLPurifier/HTMLT/safe-iframe.htmlt 538 Bytes
abf1649b   andryeyev   Чистая установка ...
1
2
3
4
5
6
7
8
9
10
11
12
13
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