1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Fix #20735: == not = in url_string

This commit is contained in:
micah 2007-08-16 01:27:02 -07:00
parent fb7fc237f7
commit 91164c9568
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-08-09 Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de>
* src/url.c (url_string): Use comparison, not assignment, in
check for auth_mode == URL_AUTH_HIDE_PASSWD.
2007-08-08 Micah Cowan <micah@cowan.name> 2007-08-08 Micah Cowan <micah@cowan.name>
* init.c (defaults): Content disposition will not be default, * init.c (defaults): Content disposition will not be default,

View File

@ -1836,7 +1836,7 @@ url_string (const struct url *url, enum url_auth_mode auth_mode)
quoted_user = url_escape_allow_passthrough (url->user); quoted_user = url_escape_allow_passthrough (url->user);
if (url->passwd) if (url->passwd)
{ {
if (auth_mode = URL_AUTH_HIDE_PASSWD) if (auth_mode == URL_AUTH_HIDE_PASSWD)
quoted_passwd = HIDDEN_PASSWORD; quoted_passwd = HIDDEN_PASSWORD;
else else
quoted_passwd = url_escape_allow_passthrough (url->passwd); quoted_passwd = url_escape_allow_passthrough (url->passwd);