MFC 1.9: Correct handling of HTTP_PROXY_AUTH. A password may have `:'.
Approved by: re (hrs)
This commit is contained in:
parent
8ddb67d972
commit
d1fb7619c6
@ -152,7 +152,7 @@ readenv(void)
|
|||||||
|
|
||||||
/* Obtain username and password */
|
/* Obtain username and password */
|
||||||
proxy_auth_user = strsep(&env_HTTP_PROXY_AUTH, ":");
|
proxy_auth_user = strsep(&env_HTTP_PROXY_AUTH, ":");
|
||||||
proxy_auth_pass = strsep(&env_HTTP_PROXY_AUTH, ":");
|
proxy_auth_pass = env_HTTP_PROXY_AUTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((proxy_auth_user != NULL) && (proxy_auth_pass != NULL)) {
|
if ((proxy_auth_user != NULL) && (proxy_auth_pass != NULL)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user