[katello-devel] Username constraint
Lukas Zapletal
lzap at redhat.com
Wed Jan 25 14:34:24 UTC 2012
Oh I am apparently not as clever as UTF-8 encoding creators. Thank to
the encoding it can never happen any sequence ever encodes a ":" byte.
It is very subtle encoding, by the way :-)
So we just need to check for the ":" character. Simple.
RFE: https://bugzilla.redhat.com/show_bug.cgi?id=784599
LZ
On Wed, Jan 25, 2012 at 03:17:30PM +0100, Lukas Zapletal wrote:
> On Wed, Jan 25, 2012 at 06:58:59AM -0700, Jason Rist wrote:
> > I think it's perfectly reasonable to limit usernames to not include a
> > colon (:).
> >
>
> I agree, but if we do it, we should do it properly. So it must not be
> found in the plain and UTF-8 encoded sequence.
>
> It is possible that some Unicode username (like in Chinese) could
> possibly generate this sequence which would lead to "This username is
> not valid" error message.
>
> Adding a RFEBZ then.
>
> LZ
>
> --
> Later,
>
> Lukas Zapletal | E32E400A
> RHN Satellite Engineering
> Red Hat Czech s.r.o. Brno
>
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel
--
Later,
Lukas Zapletal | E32E400A
RHN Satellite Engineering
Red Hat Czech s.r.o. Brno
More information about the katello-devel
mailing list