Ignore:
Timestamp:
Jul 17, 2006 10:04:12 AM (18 years ago)
Author:
bennylp
Message:

Fixed bugs with the parsing (re: allowable chars): (1) Parameters in URI and header should have different spec. URI should use paramchar spec while header should use token spec (thanks Jeroen van Bemmel) (2) The same rule applies when escaping the parameters during printing process (3) While we're on it, also fixed the tel-URI parser to automatically unescape the parameter values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/evsub_msg.c

    r197 r606  
    7171     
    7272    printed = pjsip_param_print_on(&hdr->other_param, p, endbuf-p, 
    73                                    &pjsip_PARAM_CHAR_SPEC,  
    74                                    &pjsip_PARAM_CHAR_SPEC, ';'); 
     73                                   &pjsip_TOKEN_SPEC,  
     74                                   &pjsip_TOKEN_SPEC, ';'); 
    7575    if (printed < 0) 
    7676        return printed; 
     
    181181     
    182182    printed = pjsip_param_print_on( &hdr->other_param, p, endbuf-p,  
    183                                     &pjsip_PARAM_CHAR_SPEC, 
    184                                     &pjsip_PARAM_CHAR_SPEC, 
     183                                    &pjsip_TOKEN_SPEC, 
     184                                    &pjsip_TOKEN_SPEC, 
    185185                                    ';'); 
    186186    if (printed < 0) 
Note: See TracChangeset for help on using the changeset viewer.