Mercurial > pidgin
changeset 16147:af92b284664a
simple-casepatch.diff from achris in ticket #98
This makes some comparisons in the SIMPLE prpl case-insensitive.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 15 Apr 2007 18:28:56 +0000 |
parents | 7a22ddc43685 |
children | fb752e199cef 813258bec80c |
files | libpurple/protocols/simple/simple.c libpurple/protocols/simple/sipmsg.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/simple/simple.c Sun Apr 15 18:19:33 2007 +0000 +++ b/libpurple/protocols/simple/simple.c Sun Apr 15 18:28:56 2007 +0000 @@ -1235,9 +1235,9 @@ while(tmp && tmp < acceptheader + strlen(acceptheader)) { gchar *tmp2 = strchr(tmp, ','); if(tmp2) *tmp2 = '\0'; - if(!strcmp("application/pidf+xml", tmp)) + if(!strcasecmp("application/pidf+xml", tmp)) foundpidf = TRUE; - if(!strcmp("application/xpidf+xml", tmp)) + if(!strcasecmp("application/xpidf+xml", tmp)) foundxpidf = TRUE; if(tmp2) { *tmp2 = ',';
--- a/libpurple/protocols/simple/sipmsg.c Sun Apr 15 18:19:33 2007 +0000 +++ b/libpurple/protocols/simple/sipmsg.c Sun Apr 15 18:28:56 2007 +0000 @@ -180,7 +180,7 @@ GSList *tmp = msg->headers; while(tmp) { elem = tmp->data; - if(strcmp(elem->name, name)==0) { + if(strcasecmp(elem->name, name)==0) { msg->headers = g_slist_remove(msg->headers, elem); g_free(elem->name); g_free(elem->value); @@ -198,7 +198,7 @@ tmp = msg->headers; while(tmp) { elem = tmp->data; - if(strcmp(elem->name,name)==0) { + if(strcasecmp(elem->name, name)==0) { return elem->value; } tmp = g_slist_next(tmp);