From 52c598730e07aa2feb5465d9c07d270902640246 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 15 Aug 2006 22:03:04 +0000 Subject: [PATCH] Urldecode the US-ASCII test. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@267 48356398-32a2-884e-a903-53898d9a118a --- smoketests/xssAttacks.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/smoketests/xssAttacks.php b/smoketests/xssAttacks.php index da7a93fb..5b0e2605 100644 --- a/smoketests/xssAttacks.php +++ b/smoketests/xssAttacks.php @@ -31,11 +31,14 @@ $purifier = new HTMLPurifier(); attack as $attack) { + $code = $attack->code; + // custom code for US-ASCII, which couldn't be expressed in XML without encoding + if ($attack->name == 'US-ASCII encoding') $code = urldecode($code); ?> name); ?> - - purify($attack->code); ?> + + purify($code); ?>