1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

Steve Oliphant pointed out that test case 105 did not work anymore and this

was due to a missing fix for the password prompting
This commit is contained in:
Daniel Stenberg 2003-01-10 16:19:32 +00:00
parent 94c5c7bd6d
commit 3773d76dfd

View File

@ -2491,6 +2491,9 @@ static CURLcode CreateConnection(struct SessionHandle *data,
/* no name given, get the password only */
sscanf(userpass, ":%127[^@]", data->state.passwd);
/* we have set the password */
data->state.passwdgiven = TRUE;
if(data->state.user[0]) {
char *newname=curl_unescape(data->state.user, 0);
if(strlen(newname) < sizeof(data->state.user)) {