[dev] Re: [cvs] commit: horde/lib Horde.php

Jan Schneider jan at horde.org
Mon Feb 10 16:26:11 PST 2003


Zitat von Mike Cochrane <mike at graftonhall.co.nz>:

> > ----- Message from mike at graftonhall.co.nz ---------
> >
> > mikec       2003/02/10 07:12:58 PST
> >
> >   Modified files:
> >     lib                  Horde.php
> >   Log:
> >   for loop optimizations
> >
> >   Revision  Changes    Path
> >   1.265     +5 -4      horde/lib/Horde.php
> >
> >   Chora Links:
> >  
> http://cvs.horde.org/diff.php/horde/lib/Horde.php?r1=1.264&r2=1.265&ty=u
> 
> While doing this I was looking at the rest of the getAccessKey().
> 
> I don't think it handles multibyte characters correctly. We use
> String::substr()
> to retrieve one character. As I understand it, this will return exactly
> one
> byte, not one character if its is a multibyte string.

No, that's what I've written String::substr() for. It gets one character,
not one byte like substr().

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 dev mailing list