diff --git a/test/phpunit/SecurityGETPOSTTest.php b/test/phpunit/SecurityGETPOSTTest.php index ec176634c4e..cf9df8050cf 100644 --- a/test/phpunit/SecurityGETPOSTTest.php +++ b/test/phpunit/SecurityGETPOSTTest.php @@ -276,7 +276,7 @@ class SecurityGETPOSTTest extends CommonClassTest $result = GETPOST("param7", 'restricthtml'); print __METHOD__." result param7 = ".$result."\n"; - $this->assertEquals('"c:\this is a path~1\aaan &#x;;;;" abcdef', $result); + $this->assertEquals('"c:\this is a path~1\aaan ;" abcdef', $result); $result = GETPOST("param8e", 'restricthtml'); print __METHOD__." result param8e = ".$result."\n"; @@ -345,7 +345,7 @@ class SecurityGETPOSTTest extends CommonClassTest $conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY = 1; $result = GETPOST("param0", 'restricthtml'); - $resultexpected = 'A real string with aaa and " and \' and & inside content'; + $resultexpected = 'A real string with aaa and " and \' and & inside content'; print __METHOD__." result for param0=".$result."\n"; $this->assertEquals($resultexpected, $result, 'Test on param0'); @@ -357,12 +357,12 @@ class SecurityGETPOSTTest extends CommonClassTest $result = GETPOST("param6", 'restricthtml'); print __METHOD__." result for param6=".$result." - before=".$_POST["param6"]."\n"; //$this->assertEquals('InvalidHTMLStringCantBeCleaned', $result, 'Test 15b'); // With some PHP and libxml version, we got this result when parsing invalid HTML, but ... - $this->assertEquals('">', $result); + $this->assertEquals('">', $result); $result = GETPOST("param7", 'restricthtml'); print __METHOD__." result param7 = ".$result."\n"; //$this->assertEquals('InvalidHTMLStringCantBeCleaned', $result, 'Test 15b'); // With some PHP and libxml version, we got this result when parsing invalid HTML, but ... - $this->assertEquals('"c:\this is a path~1\aaan Đ" abcdef', $result); + $this->assertEquals('"c:\this is a path~1\aaan ;" abcdef', $result); } @@ -373,7 +373,7 @@ class SecurityGETPOSTTest extends CommonClassTest $conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY = 1; $result = GETPOST("param0", 'restricthtml'); - $resultexpected = 'A real string with aaa and " and \' and & inside content'; + $resultexpected = 'A real string with aaa and " and \' and & inside content'; print __METHOD__." result for param0=".$result."\n"; $this->assertEquals($resultexpected, $result, 'Test on param0');