summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorUrban Müller2022-09-23 16:42:06 +0200
committerUrban Müller2022-09-23 16:42:06 +0200
commitface65de2254eb40ddcfd93f8d12dc1c0582a130 (patch)
treea46f8080b21ae8b3461796c3c4c9b6051df7cb20 /test
parent416d43ea8820eee1e8e2bd960644f155643096c1 (diff)
downloaditools-face65de2254eb40ddcfd93f8d12dc1c0582a130.tar.gz
itools-face65de2254eb40ddcfd93f8d12dc1c0582a130.tar.bz2
itools-face65de2254eb40ddcfd93f8d12dc1c0582a130.zip
utf8-safe versions of typical php input functions
Diffstat (limited to 'test')
-rwxr-xr-xtest/it.t5
1 files changed, 4 insertions, 1 deletions
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"), ['ä' => ['ä' => ['ä' => 'ä']]]);