Changeset 1345 for pjproject/trunk
- Timestamp:
- Jun 7, 2007 12:51:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_parser.c
r1269 r1345 125 125 pjsip_USER_SPEC, /* User */ 126 126 pjsip_USER_SPEC_ESC, /* Variant without escaped char */ 127 pjsip_USER_SPEC_LENIENT, /* User, with additional '#' char */ 128 pjsip_USER_SPEC_LENIENT_ESC, 127 129 pjsip_NOT_COMMA_OR_NEWLINE, /* Array separator. */ 128 130 pjsip_NOT_NEWLINE, /* For eating up header.*/ … … 362 364 pj_cis_del_str( &pjsip_USER_SPEC_ESC, ESCAPED); 363 365 366 status = pj_cis_dup(&pjsip_USER_SPEC_LENIENT, &pjsip_USER_SPEC); 367 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 368 pj_cis_add_str(&pjsip_USER_SPEC_LENIENT, "#"); 369 370 status = pj_cis_dup(&pjsip_USER_SPEC_LENIENT_ESC, &pjsip_USER_SPEC_ESC); 371 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 372 pj_cis_add_str(&pjsip_USER_SPEC_LENIENT_ESC, "#"); 373 364 374 status = pj_cis_dup(&pjsip_PASSWD_SPEC, &pjsip_ALNUM_SPEC); 365 375 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); … … 1209 1219 pj_str_t *user, pj_str_t *pass) 1210 1220 { 1211 parser_get_and_unescape(scanner, pool, &pjsip_USER_SPEC ,1212 &pjsip_USER_SPEC_ ESC, user);1221 parser_get_and_unescape(scanner, pool, &pjsip_USER_SPEC_LENIENT, 1222 &pjsip_USER_SPEC_LENIENT_ESC, user); 1213 1223 1214 1224 if ( *scanner->curptr == ':') {
Note: See TracChangeset
for help on using the changeset viewer.