Changeset 3342


Ignore:
Timestamp:
Oct 13, 2010 11:17:51 AM (13 years ago)
Author:
bennylp
Message:

Fixed #1147 (Bug in parsing multipart message bodies (thanks Johan Lantz for the report)): leave the quote in parameter values and let the multipart code handle this instead

Location:
pjproject/trunk/pjsip/src/pjsip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_multipart.c

    r3340 r3342  
    522522    if (ctype_param) { 
    523523        boundary = ctype_param->value; 
     524        if (boundary.slen>2 && *boundary.ptr=='"') { 
     525            /* Remove quote */ 
     526            boundary.ptr++; 
     527            boundary.slen -= 2; 
     528        } 
    524529        TRACE_((THIS_FILE, "Boundary is specified: '%.*s'", (int)boundary.slen, 
    525530                boundary.ptr)); 
  • pjproject/trunk/pjsip/src/pjsip/sip_parser.c

    r3340 r3342  
    18571857    while (*scanner->curptr == ';') { 
    18581858        pjsip_param *param = PJ_POOL_ALLOC_T(ctx->pool, pjsip_param); 
    1859         int_parse_param(scanner, ctx->pool, &param->name, &param->value, 
    1860                         PJSIP_PARSE_REMOVE_QUOTE); 
     1859        int_parse_param(scanner, ctx->pool, &param->name, &param->value, 0); 
    18611860        pj_list_push_back(&hdr->media.param, param); 
    18621861    } 
Note: See TracChangeset for help on using the changeset viewer.