Correct handling of HTTP_PROXY_AUTH. A password may have `:'.

Approved by:	cperciva
MFC after:	2 days
This commit is contained in:
Hajimu UMEMOTO 2006-03-07 19:04:16 +00:00
parent c0f0812202
commit 905b98c5f4

View File

@ -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)) {