chinese url show bug fix patch
liaobin <[email protected]>
| Newsgroups | gmane.comp.horde.chora |
|---|---|
| Organization | jite |
| Message-ID | <[email protected]> |
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
--
Chora mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]