Conditionalize hash_hmac tests for 5.0
[htmlpurifier.git] / tests / HTMLPurifier / HTMLT / munge-extra.htmlt
blob9906155e5356999e60a618160d87445591acef28
1 --SKIPIF--
2 return !function_exists('hash_hmac');
3 --INI--
4 URI.Munge = "/redirect?s=%s&t=%t&r=%r&n=%n&m=%m&p=%p"
5 URI.MungeSecretKey = "foo"
6 URI.MungeResources = true
7 --HTML--
8 <a href="http://example.com">Link</a>
9 <img src="http://example.com" style="background-image:url(http://example.com);" alt="example.com" />
10 --EXPECT--
11 <a href="/redirect?s=http%3A%2F%2Fexample.com&amp;t=c763c4a30204eee8470a3292e0f0cd91a639654d039d45f1495a50207847e954&amp;r=&amp;n=a&amp;m=href&amp;p=">Link</a>
12 <img src="/redirect?s=http%3A%2F%2Fexample.com&amp;t=c763c4a30204eee8470a3292e0f0cd91a639654d039d45f1495a50207847e954&amp;r=1&amp;n=img&amp;m=src&amp;p=" style="background-image:url(&quot;/redirect?s=http%3A%2F%2Fexample.com&amp;t=c763c4a30204eee8470a3292e0f0cd91a639654d039d45f1495a50207847e954&amp;r=1&amp;n=img&amp;m=style&amp;p=background-image&quot;);" alt="example.com" />
13 --# vim: et sw=4 sts=4