Changeset 3958


Ignore:
Timestamp:
Feb 25, 2012 12:55:37 AM (13 years ago)
Author:
bennylp
Message:

Fixed #1454: Bug in parsing XML document if node name is followed by newline (thanks Samuel Prevot for the report)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjlib-util/src/pjlib-util/xml.c

    r3553 r3958  
    101101 
    102102    /* Get node name. */ 
    103     pj_scan_get_until_chr( scanner, " />\t", &node->name); 
     103    pj_scan_get_until_chr( scanner, " />\t\r\n", &node->name); 
    104104 
    105105    /* Get attributes. */ 
     
    107107        pj_xml_attr *attr = alloc_attr(pool); 
    108108         
    109         pj_scan_get_until_chr( scanner, "=> \t", &attr->name); 
     109        pj_scan_get_until_chr( scanner, "=> \t\r\n", &attr->name); 
    110110        if (*scanner->curptr == '=') { 
    111111            pj_scan_get_char( scanner ); 
Note: See TracChangeset for help on using the changeset viewer.