Check before adding http:// in HTTP_DealWithProxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Date: Sat, 4 Oct 2003 15:34:58 +0200

This time with a case insensitive check

Changelog:
        dlls/wininet/http.c: HTTP_DealWithProxy()
        Only add http:// to proxy string when needed

-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/dlls/wininet/http.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/http.c,v
retrieving revision 1.43
diff -u -r1.43 http.c
--- wine/dlls/wininet/http.c	11 Dec 2003 04:25:41 -0000	1.43
+++ wine/dlls/wininet/http.c	14 Dec 2003 12:41:55 -0000
@@ -504,7 +504,10 @@
     UrlComponents.lpszHostName = buf;
     UrlComponents.dwHostNameLength = MAXHOSTNAME;
 
-    sprintf(proxy, "http://%s/";, hIC->lpszProxy);
+    if (strncasecmp(hIC->lpszProxy,"http://",strlen("http://";)))
+	sprintf(proxy, "http://%s/";, hIC->lpszProxy);
+    else
+	strcpy(proxy,hIC->lpszProxy);
     if( !InternetCrackUrlA(proxy, 0, 0, &UrlComponents) )
         return FALSE;
     if( UrlComponents.dwHostNameLength == 0 )


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux