diff options
author | David Flatz | 2015-02-12 13:47:51 +0100 |
---|---|---|
committer | David Flatz | 2015-02-12 13:47:51 +0100 |
commit | 5472150c2fcc91aa190e2cbbd7c228c90de43470 (patch) | |
tree | d2b03b8620a0140321348f3af91203f2a29c8bf8 | |
parent | 7da3f6d30e1557baf969885a357b9cb7853ecaaf (diff) | |
download | itools-5472150c2fcc91aa190e2cbbd7c228c90de43470.tar.gz itools-5472150c2fcc91aa190e2cbbd7c228c90de43470.tar.bz2 itools-5472150c2fcc91aa190e2cbbd7c228c90de43470.zip |
Revert "allow international chars in path" because it introduces a lot of redirect loops because of non-canoical representations of url
This reverts commit ae6397e68cd352a0478123eb0f9f60457a155f35.
-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 db63928..2a93473 100644 --- a/it_html.class +++ b/it_html.class @@ -551,7 +551,7 @@ static function U(/* ... */) $parts[$i] = (preg_match('/[0-9a-f][0-9a-f]/i', $parts[$i]) ? "%" : "%25") . $parts[$i]; $path = join("", $parts); - $path = preg_replace_callback('|[^-a-z0-9_.+!*(),:?@&=/~$%#\x80-\xff]|i', function($m) { return rawurlencode($m[0]); }, $path); + $path = preg_replace_callback('|[^-a-z0-9_.+!*(),:?@&=/~$%#]|i', function($m) { return rawurlencode($m[0]); }, $path); $path = preg_replace('|^([a-z0-9_]+:)?//[^/]*$|', '$0/', $path); # Add slash if absolute url without a path, e.g. http://gna.ch $queryparams = it_url::params($params); $separator = strpos($path, "?") === false ? "?" : "&"; |