[chora] chinese url show bug fix patch

liaobin wuxuyu at 126.com
Tue Oct 14 02:43:29 PDT 2003


hello,all:

I give  bug report for chora 2.0-cvs in 2003-9-26

I modified lib/Horde.php to fix that can not show chinese url bug.

+ 396 $url = Horde::translate_uri($url);
397 $url = Util::addParameter($url, session_name(), session_id());
398 }
399
400 return ($full ? $url : htmlentities($url));
401 }
+ 402 function translate_uri($uri) {
+ 403 $parts = explode('/', $uri);
+ 404 for ($i = 0; $i < count($parts); $i++) {
+ 405 $parts[$i] = rawurlencode($parts[$i]);
+ 406 }
+ 407 return implode('/', $parts);
+ 408 }

hope this is useful

liaobin




More information about the chora mailing list