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

Chih-Wei Yeh cwyeh at pest.yichi.org
Tue Oct 14 09:16:06 PDT 2003


Hi, Chuck:

  I think he meant that chora can't show files which used chinese words as
their file names in the CVS repository. I haven't applied his patch, but
apparently I can neither read the files nor change directories to those
with chinese file names. The error message is "404 Not Found".


Regards,

Chi-Wei Yeh

On Tue, 14 Oct 2003, Chuck Hagenbuch wrote:

> 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.
>
> --
> Horde i18n mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: i18n-unsubscribe at lists.horde.org
>


More information about the i18n mailing list