Check before adding http:// in HTTP_DealWithProxy

Andreas Mohr andi at rhlx01.fht-esslingen.de
Sat Oct 4 12:06:47 CDT 2003


Hi,

On Sat, Oct 04, 2003 at 03:34:58PM +0200, Uwe Bonnes wrote:
> Changelog:
> 	dlls/wininet/http.c: HTTP_DealWithProxy()
> 	Only add http:// to proxy string when needed
> -- 
> Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de
> 
> 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.42
> diff -u -r1.42 http.c
> --- wine/dlls/wininet/http.c	25 Sep 2003 20:25:22 -0000	1.42
> +++ wine/dlls/wininet/http.c	4 Oct 2003 13:31:53 -0000
> @@ -503,8 +503,12 @@
>      UrlComponents.dwStructSize = sizeof UrlComponents;
>      UrlComponents.lpszHostName = buf;
>      UrlComponents.dwHostNameLength = MAXHOSTNAME;
> -
> -    sprintf(proxy, "http://%s/", hIC->lpszProxy);
> + 
> +    if(strncmp(lpwhr->lpszPath, "http://", sizeof("http://") -1) == 0)
Last time I checked (i.e. right now), HtTp was complete case insensitive
in my browser...

-- 
Microsoft prepares new round of .doc office format lock-in
(just forget about OpenOffice/StarOffice .doc interoperability then, ok?)
http://news.com.com/2100-1012_3-5069246.html



More information about the wine-devel mailing list