safe-object-embed-munge.htmlt 900 B

12345678910
  1. --INI--
  2. HTML.SafeObject = true
  3. HTML.SafeEmbed = true
  4. URI.Munge = "/redirect.php?url=%s&check=%t"
  5. URI.MungeSecretKey = "foo"
  6. --HTML--
  7. <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/Oq3FV_zdyy0&hl=en"></param><embed src="http://www.youtube.com/v/Oq3FV_zdyy0&hl=en" type="application/x-shockwave-flash" width="425" height="344"></embed></object>
  8. --EXPECT--
  9. <object width="425" height="344" data="http://www.youtube.com/v/Oq3FV_zdyy0&amp;hl=en" type="application/x-shockwave-flash"><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="internal" /><param name="movie" value="http://www.youtube.com/v/Oq3FV_zdyy0&amp;hl=en" /><embed src="http://www.youtube.com/v/Oq3FV_zdyy0&amp;hl=en" type="application/x-shockwave-flash" width="425" height="344" allowscriptaccess="never" allownetworking="internal" /></object>
  10. --# vim: et sw=4 sts=4