From face65de2254eb40ddcfd93f8d12dc1c0582a130 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 23 Sep 2022 16:42:06 +0200 Subject: utf8-safe versions of typical php input functions --- test/it.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/it.t b/test/it.t index 19f445f..0aee958 100755 --- a/test/it.t +++ b/test/it.t @@ -539,7 +539,7 @@ function requesturi($teststring, $expect) { $_SERVER['REQUEST_URI'] = urlencode($teststring); it::params2utf8(); - is(urldecode($_SERVER['REQUEST_URI']), $expect, "parms2utf8('$expect')"); + is(urldecode($_SERVER['REQUEST_URI']), $expect, "parms2utf8('$expect')"); # NOPHPLINT } _getopt(["val"], ['foo' => "val"]); @@ -567,3 +567,6 @@ function _getopt($in, $expect) is($opts, ['args' => $expect['args'] ?? []] + $expect); } + +is(it::urldecode("a%61%E4"), "aaä"); +is(it::parse_str("%E4[%E4][%E4]=%E4"), ['ä' => ['ä' => ['ä' => 'ä']]]); -- cgit v1.2.3