Prepended constants with C_ to avoid reserved words as per https://www.php.net/manual...
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / HTMLT / secure-munge.htmlt
blob7c41cc9ce6ce48d9434359a73141c9351f0068c8
1 --SKIPIF--
2 return !function_exists('hash_hmac');
3 --INI--
4 URI.Munge = "/redirect.php?url=%s&check=%t"
5 URI.MungeSecretKey = "foo"
6 --HTML--
7 <a href="http://localhost">foo</a>
8 <img src="http://localhost" alt="local" />
9 --EXPECT--
10 <a href="/redirect.php?url=http%3A%2F%2Flocalhost&amp;check=c0efad89696082f5cb925d28636b0f4260f346391c92c70c8e9eba72591c2a73">foo</a>
11 <img src="http://localhost" alt="local" />
12 --# vim: et sw=4 sts=4