diff options
author | Christian A. Weber | 2017-08-21 18:10:10 +0200 |
---|---|---|
committer | Christian A. Weber | 2017-08-21 18:10:10 +0200 |
commit | 34a0745e18910acd7f90a19dbd08ff03de2456bc (patch) | |
tree | dd64479ede7dd2176c8e51d6235a34b18003da1a /it_html.class | |
parent | 64791c69da32f7194e0cd673bb0cc70a74d33013 (diff) | |
download | itools-34a0745e18910acd7f90a19dbd08ff03de2456bc.tar.gz itools-34a0745e18910acd7f90a19dbd08ff03de2456bc.tar.bz2 itools-34a0745e18910acd7f90a19dbd08ff03de2456bc.zip |
add it_url::parse_str() which leaves dots and spaces in arg names intact
Diffstat (limited to 'it_html.class')
-rw-r--r-- | it_html.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class index ea8a159..9ffd4e3 100644 --- a/it_html.class +++ b/it_html.class @@ -542,7 +542,7 @@ static function U(/* ... */) if (!($u = @parse_url($base))) list($u['path'], $u['query']) = explode("?", $base, 2); - parse_str($u['query'], $u['params']); + $u['params'] = it_url::parse_str($u['query']); $u['host'] = preg_match('/[^-_.0-9a-z]/i', $u['host']) && function_exists('idn_to_ascii') && ($idnahost = idn_to_ascii($GLOBALS['it_html']->p['charset'] == "iso-8859-1" ? utf8_encode($u['host']) : $u['host'])) ? $idnahost : $u['host']; # Punycode hostname to include into webpage $u['host'] = preg_replace_callback('/[^-_.0-9a-z\x80-\xff]/i', function($m) { return rawurlencode($m[0]); }, $u['host']); # Encode garbage chars in host |