Fix "http://" prefix detection on the proxy URL.
This commit is contained in:
parent
386c3a5819
commit
cc44f3a5c7
@ -898,10 +898,10 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
|
|||||||
UrlComponents.dwHostNameLength = MAXHOSTNAME;
|
UrlComponents.dwHostNameLength = MAXHOSTNAME;
|
||||||
|
|
||||||
if( CSTR_EQUAL != CompareStringW(LOCALE_SYSTEM_DEFAULT, NORM_IGNORECASE,
|
if( CSTR_EQUAL != CompareStringW(LOCALE_SYSTEM_DEFAULT, NORM_IGNORECASE,
|
||||||
buf,strlenW(szHttp),szHttp,strlenW(szHttp)) )
|
hIC->lpszProxy,strlenW(szHttp),szHttp,strlenW(szHttp)) )
|
||||||
sprintfW(proxy, szFormat1, hIC->lpszProxy);
|
sprintfW(proxy, szFormat1, hIC->lpszProxy);
|
||||||
else
|
else
|
||||||
strcpyW(proxy,buf);
|
strcpyW(proxy, hIC->lpszProxy);
|
||||||
if( !InternetCrackUrlW(proxy, 0, 0, &UrlComponents) )
|
if( !InternetCrackUrlW(proxy, 0, 0, &UrlComponents) )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if( UrlComponents.dwHostNameLength == 0 )
|
if( UrlComponents.dwHostNameLength == 0 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user