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

Jan Schneider jan at horde.org
Tue Oct 14 08:34:00 PDT 2003


I have no idea.

Zitat von Chuck Hagenbuch <chuck at horde.org>:

> 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

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the i18n mailing list