[i18n] Fwd: [chora] chinese url show bug fix patch

Chuck Hagenbuch chuck at horde.org
Tue Oct 14 07:00:10 PDT 2003


I don't really understand this. Can anyone comment here?

----- Forwarded message from wuxuyu at 126.com -----
    Date: Tue, 14 Oct 2003 17:43:29 +0800
    From: liaobin <wuxuyu at 126.com>
Reply-To: wuxuyu at 126.com
 Subject: [chora] chinese url show bug fix patch
      To: chora at lists.horde.org

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: chora-unsubscribe at lists.horde.org



----- End forwarded message -----


-chuck

--
Charles Hagenbuch, <chuck at horde.org>
Born right the first time.


More information about the i18n mailing list