comparison libpurple/util.c @ 20218:99ceb1329a5b

applied changes from 3fcc47961d378fa0cd4eeb00dc6923b16a3a4151 through c9d6104bcfe2e630e98e45bc6a0975adfb9544e5
author Richard Laager <rlaager@wiktel.com>
date Fri, 28 Sep 2007 15:45:25 +0000
parents 44b4e8bd759b
children 89e5492bcea4
comparison
equal deleted inserted replaced
20217:d4e250c3cd44 20218:99ceb1329a5b
1540 const char *p = c; 1540 const char *p = c;
1541 struct purple_parse_tag *pt; 1541 struct purple_parse_tag *pt;
1542 while(*p && *p != '>') { 1542 while(*p && *p != '>') {
1543 if(!g_ascii_strncasecmp(p, "href=", strlen("href="))) { 1543 if(!g_ascii_strncasecmp(p, "href=", strlen("href="))) {
1544 const char *q = p + strlen("href="); 1544 const char *q = p + strlen("href=");
1545 g_string_free(url, TRUE); 1545 if (url)
1546 g_string_free(url, TRUE);
1546 url = g_string_new(""); 1547 url = g_string_new("");
1547 cdata = g_string_new(""); 1548 cdata = g_string_new("");
1548 if(*q == '\'' || *q == '\"') 1549 if(*q == '\'' || *q == '\"')
1549 q++; 1550 q++;
1550 while(*q && *q != '\"' && *q != '\'' && *q != ' ') { 1551 while(*q && *q != '\"' && *q != '\'' && *q != ' ') {