Changeset 4228


Ignore:
Timestamp:
Aug 13, 2012 7:26:03 AM (12 years ago)
Author:
bennylp
Message:

Fixed #1569: Option to allow hash character ('#') to appear in user part of SIP URL

Location:
pjproject/trunk/pjsip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_config.h

    r4227 r4228  
    7777         */ 
    7878        pj_bool_t allow_port_in_fromto_hdr; 
     79 
     80        /** 
     81         * Allow hash character ('#') to appear in outgoing URIs. See 
     82         * https://trac.pjsip.org/repos/ticket/1569 
     83         */ 
     84        pj_bool_t allow_tx_hash_in_uri; 
    7985 
    8086        /** 
  • pjproject/trunk/pjsip/src/pjsip/sip_uri.c

    r3553 r4228  
    270270    /* Print "user:password@", if any. */ 
    271271    if (url->user.slen) { 
    272         copy_advance_escape(buf, url->user, pc->pjsip_USER_SPEC); 
     272        const pj_cis_t *spec = pjsip_cfg()->endpt.allow_tx_hash_in_uri ? 
     273                                &pc->pjsip_USER_SPEC_LENIENT : 
     274                                &pc->pjsip_USER_SPEC; 
     275        copy_advance_escape(buf, url->user, *spec); 
    273276        if (url->passwd.slen) { 
    274277            *buf++ = ':'; 
Note: See TracChangeset for help on using the changeset viewer.