diff options
| author | Urban Müller | 2015-02-03 18:00:43 +0100 |
|---|---|---|
| committer | Urban Müller | 2015-02-03 18:00:43 +0100 |
| commit | ae6397e68cd352a0478123eb0f9f60457a155f35 (patch) | |
| tree | 1dc47f427c2a4c2544cdb0279f9cb6f2d4a9fba5 | |
| parent | 83a7229792907bcb1d6af3f4f8b80cf695c6d115 (diff) | |
| download | itools-ae6397e68cd352a0478123eb0f9f60457a155f35.tar.gz itools-ae6397e68cd352a0478123eb0f9f60457a155f35.tar.bz2 itools-ae6397e68cd352a0478123eb0f9f60457a155f35.zip | |
allow international chars in path
| -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 1679886..9e1f599 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_.+!*(),:?@&=/~$%#]|i', function($m) { return rawurlencode($m[0]); }, $path); + $path = preg_replace_callback('|[^-a-z0-9_.+!*(),:?@&=/~$%#\x80-\xff]|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 ? "?" : "&"; |