From 8197be3061db8bd2f57910fa30d6adf34b04e824 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 8 Sep 2009 15:26:56 +0000 Subject: Use U() to sanitize URLs in it_html::sanitize and adapted test cases to it --- tests/it_html.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/it_html.t') diff --git a/tests/it_html.t b/tests/it_html.t index 9c05341..3b4dc2f 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -91,11 +91,11 @@ is( ); is( - it_html::sanitize(" \r \n " . '

swisspics posted < < ä & yesterday a photo tag missmatch:



+ it_html::sanitize(" \r \n " . '

swisspics posted < < ä & yesterday a photo tag missmatch:



Wolken

'), - ' swisspics posted < < ä & yesterday a photo tag missmatch:

', + ' swisspics posted < < ä & yesterday a photo tag missmatch:

', 'it_html::sanitize tag soup' ); @@ -134,12 +134,12 @@ is( is( U('%% %1%x %1x%x1%xx%11%ff%FF'), '%25%25+%251%25x+%251x%25x1%25xx%11%ff%FF', - 'quoting of % if not followed by 2 hex digits' + 'U() quoting of % if not followed by 2 hex digits' ); is( U('a\\b'), 'a/b', - 'converting of \ to /' + 'U() converting of \ to /' ); ?> -- cgit v1.2.3