Changes in lib/xmltree.c [3742fb6:94acdd0]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/xmltree.c
r3742fb6 r94acdd0 449 449 while( node ) 450 450 { 451 char *colon; 452 453 if( g_strcasecmp( node->name, name ) == 0 || 454 ( ( colon = strchr( node->name, ':' ) ) && 455 g_strcasecmp( colon + 1, name ) == 0 ) ) 451 if( g_strcasecmp( node->name, name ) == 0 ) 456 452 break; 457 453 … … 465 461 { 466 462 int i; 467 char *colon;468 463 469 464 if( !node ) … … 473 468 if( g_strcasecmp( node->attr[i].key, key ) == 0 ) 474 469 break; 475 476 /* This is an awful hack that only takes care of namespace prefixes477 inside a tag. Since IMHO excessive namespace usage in XMPP is478 massive overkill anyway (this code exists for almost four years479 now and never really missed it): Meh. */480 if( !node->attr[i].key && strcmp( key, "xmlns" ) == 0 &&481 ( colon = strchr( node->name, ':' ) ) )482 {483 *colon = '\0';484 for( i = 0; node->attr[i].key; i ++ )485 if( strncmp( node->attr[i].key, "xmlns:", 6 ) == 0 &&486 strcmp( node->attr[i].key + 6, node->name ) == 0 )487 break;488 *colon = ':';489 }490 470 491 471 return node->attr[i].value;
Note: See TracChangeset
for help on using the changeset viewer.