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/sip_auth_msg.c

    r82 r606  
    8282     
    8383    printed = pjsip_param_print_on(&cred->other_param, buf, endbuf-buf,  
    84                                    &pjsip_PARAM_CHAR_SPEC,  
    85                                    &pjsip_PARAM_CHAR_SPEC, ','); 
     84                                   &pjsip_TOKEN_SPEC,  
     85                                   &pjsip_TOKEN_SPEC, ','); 
    8686    if (printed < 0) 
    8787        return -1; 
     
    236236     
    237237    printed = pjsip_param_print_on(&chal->other_param, buf, endbuf-buf,  
    238                                    &pjsip_PARAM_CHAR_SPEC,  
    239                                    &pjsip_PARAM_CHAR_SPEC, ','); 
     238                                   &pjsip_TOKEN_SPEC,  
     239                                   &pjsip_TOKEN_SPEC, ','); 
    240240    if (printed < 0) 
    241241        return -1; 
Note: See TracChangeset for help on using the changeset viewer.