[Users] Domain: is_from_local() is case sensitive in caching mode.

Juha Heinanen jh at tutpro.com
Mon Mar 13 15:34:51 CET 2006


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