Ignore:
Timestamp:
Apr 20, 2016 1:58:15 AM (9 years ago)
Author:
ming
Message:

Re #1882 (misc): Removed stripping of '[]' from pvalue header parameters.

The stripping of '[]' from header parameters causes issues if
something (like a port) occurrs after the final ']'.

'[2001:a::b]' will correctly parse to '2001:a::b'
'[2001:a::b]:8080' will correctly parse to '2001:a::b' but the scanner is left
with ':8080' and parsing stops with a syntax error.

Thanks to Anthony Messina and George Joseph for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test/uri_test.c

    r4728 r5280  
    723723    url->user = pj_str("user"); 
    724724    url->host = pj_str("::1"); 
    725     url->maddr_param = pj_str("::01"); 
     725    url->maddr_param = pj_str("[::01]"); 
    726726    return (pjsip_uri*)url; 
    727727} 
     
    733733    url = pjsip_sip_uri_create(pool, 0); 
    734734    url->host = pj_str("::1"); 
    735     url->maddr_param = pj_str("::01"); 
     735    url->maddr_param = pj_str("[::01]"); 
    736736    return (pjsip_uri*)url; 
    737737 
Note: See TracChangeset for help on using the changeset viewer.