1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

Make it possible to request only the password component of an URI

Before it was only to get the password when the user name was also
requested.  This fixes FSP access to password protected directories.

The problem was discovered by Witold and mentioned in the post to
elinks-dev with the message-id: <20061209204151.GA32758@pldmachine> on
2006-12-09.
This commit is contained in:
Jonas Fonseca 2006-12-10 21:46:32 +01:00
parent b527fcb308
commit f90c07d54f

View File

@ -490,7 +490,10 @@ add_uri_to_string(struct string *string, struct uri *uri,
}
add_char_to_string(string, '@');
}
} else if (wants(URI_PASSWORD) && uri->passwordlen) {
add_bytes_to_string(string, uri->password, uri->passwordlen);
}
if (wants(URI_HOST) && uri->hostlen) {
int add_host = 1;