Mercurial > hg > mlmmj
changeset 700:ba413c74c9ab
strcasecmp for owner check in +list
author | mmj |
---|---|
date | Sat, 11 Apr 2009 18:27:36 +1000 |
parents | 336aa416e52c |
children | d7d67d5fa263 |
files | ChangeLog src/listcontrol.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Mar 07 03:06:57 2009 +1100 +++ b/ChangeLog Sat Apr 11 18:27:36 2009 +1000 @@ -1,3 +1,5 @@ + o Caseinsensitive string compare for owner addr when +list is invoked. Spotted + by Pavel Kolar. o Added contrib/web/php-moderation (Thomas Goirand) 1.2.16 o Fixed injection in contrib/web/perl-user (Gerd von Egidy)
--- a/src/listcontrol.c Sat Mar 07 03:06:57 2009 +1100 +++ b/src/listcontrol.c Sat Apr 11 18:27:36 2009 +1000 @@ -716,7 +716,7 @@ owner_idx = -1; owners = ctrlvalues(listdir, "owner"); for(i = 0; i < owners->count; i++) { - if(strcmp(fromemails->emaillist[0], + if(strcasecmp(fromemails->emaillist[0], owners->strs[i]) == 0) { log_oper(listdir, OPLOGFNAME, "%s requested sub list",