[Users] Domain: is_from_local() is case sensitive in caching mode.
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Mon Mar 13 15:43:25 CET 2006
still is not clear for me what will be the advantage of keeping the
domain names into the cache in a specific format? what is here important
is how they are compared...
regards,
bogdan
Juha Heinanen wrote:
>Papadopoulos Georgios writes:
>
> > I tried it and it works fine. It is also important that when the table
> > is cached into memory that it is done in lowercase. I searched briefly
> > but could not locate the code where this is done (maybe in the DB
> > module?).
>
>it is done by hash.c/hash_table_install function. you could add
>statement
>
> for (i = 0; i < np->domain.len; i++) domain[i] = tolower(domain[i]);
>
>before
>
> (void) strncpy(np->domain.s, domain, np->domain.len);
>
>-- juha
>
>
More information about the Users
mailing list