From fa1d14fc7da3b9ee5fa3af0ddd0e088bbe7e80e5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 18 Sep 2020 01:01:01 +0200 Subject: [PATCH] More complete phpunit --- test/phpunit/SecurityTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/phpunit/SecurityTest.php b/test/phpunit/SecurityTest.php index 303fd272601..161dcd935b3 100644 --- a/test/phpunit/SecurityTest.php +++ b/test/phpunit/SecurityTest.php @@ -177,6 +177,7 @@ class SecurityTest extends PHPUnit\Framework\TestCase $_GET["param4"]='../dir'; $_GET["param5"]="a_1-b"; $_POST["param6"]="">assertEquals('">', $result); + $result=GETPOST("param7", 'restricthtml'); + print __METHOD__." result=".$result."\n"; + $this->assertEquals('"c:\this is a path~1\aaa" abcdef', $result); + return $result; }