[Mono-devel-list] [Patch] Bad url scheme detection in WebProxy.cs

Yaacov Akiba Slama ya at slamail.org
Thu Jul 22 11:58:52 EDT 2004


In WebProxy.cs, if no scheme is detected in the url, "http://" is added 
at the beginning of the url.

The problem is that the current code thinks the scheme is present as 
soon as a ":" is found in the url, and this fails if the url contains a 
port number (ex: "proxyhostname:8080"). The proposed solution is to 
dtetect the scheme by searching the string "://".

The patch is enclosed and the fix is due to Konstantin Triger 
<kostat at mainsoft.com>

Can you please commit ?


Yaacov Akiba Slama

-------------- next part --------------
A non-text attachment was scrubbed...
Name: WebProxy.patch
Type: text/x-patch
Size: 389 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040722/7a1bd8c1/attachment.bin 

More information about the Mono-devel-list mailing list