diff options
author | Urban Müller | 2022-09-23 16:42:06 +0200 |
---|---|---|
committer | Urban Müller | 2022-09-23 16:42:06 +0200 |
commit | face65de2254eb40ddcfd93f8d12dc1c0582a130 (patch) | |
tree | a46f8080b21ae8b3461796c3c4c9b6051df7cb20 /test/it.t | |
parent | 416d43ea8820eee1e8e2bd960644f155643096c1 (diff) | |
download | itools-face65de2254eb40ddcfd93f8d12dc1c0582a130.tar.gz itools-face65de2254eb40ddcfd93f8d12dc1c0582a130.tar.bz2 itools-face65de2254eb40ddcfd93f8d12dc1c0582a130.zip |
utf8-safe versions of typical php input functions
Diffstat (limited to 'test/it.t')
-rwxr-xr-x | test/it.t | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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"), ['ä' => ['ä' => ['ä' => 'ä']]]); |