comparison libpurple/protocols/simple/simple.c @ 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 32c366eeeb99
children 3e400c5b0b51
comparison
equal deleted inserted replaced
16146:7a22ddc43685 16147:af92b284664a
1233 gboolean foundpidf = FALSE; 1233 gboolean foundpidf = FALSE;
1234 gboolean foundxpidf = FALSE; 1234 gboolean foundxpidf = FALSE;
1235 while(tmp && tmp < acceptheader + strlen(acceptheader)) { 1235 while(tmp && tmp < acceptheader + strlen(acceptheader)) {
1236 gchar *tmp2 = strchr(tmp, ','); 1236 gchar *tmp2 = strchr(tmp, ',');
1237 if(tmp2) *tmp2 = '\0'; 1237 if(tmp2) *tmp2 = '\0';
1238 if(!strcmp("application/pidf+xml", tmp)) 1238 if(!strcasecmp("application/pidf+xml", tmp))
1239 foundpidf = TRUE; 1239 foundpidf = TRUE;
1240 if(!strcmp("application/xpidf+xml", tmp)) 1240 if(!strcasecmp("application/xpidf+xml", tmp))
1241 foundxpidf = TRUE; 1241 foundxpidf = TRUE;
1242 if(tmp2) { 1242 if(tmp2) {
1243 *tmp2 = ','; 1243 *tmp2 = ',';
1244 tmp = tmp2; 1244 tmp = tmp2;
1245 while(*tmp == ' ') tmp++; 1245 while(*tmp == ' ') tmp++;