Commit b8ae429b authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI

Revert part of the fix for empty passwords: we don't need it for empty username

parent 7c315a93
......@@ -387,14 +387,9 @@ scope { belle_generic_uri_t* current; }
: authority_user ( COLON authority_password )? AT ;
authority_user : ( unreserved | escaped | user_unreserved )+ {
char* unescaped_username;
const char* source = (const char*)$text->chars;
if( source == NULL ){
belle_generic_uri_set_user($authority_userinfo::current,"");
} else {
unescaped_username=belle_sip_to_unescaped_string(source);
unescaped_username=belle_sip_to_unescaped_string((const char *)$text->chars);
belle_generic_uri_set_user($authority_userinfo::current,unescaped_username);
belle_sip_free(unescaped_username);
}
};
authority_password : ( unreserved | escaped | AND | EQUAL | PLUS | DOLLARD | COMMA )* {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment