[Mono-bugs] [Bug 76501][Wis] New - Problem of double slashes in URIBuilder

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Oct 21 11:51:37 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by informatique.internet at fiducial.fr.

http://bugzilla.ximian.com/show_bug.cgi?id=76501

--- shadow/76501	2005-10-21 11:51:36.000000000 -0400
+++ shadow/76501.tmp.4817	2005-10-21 11:51:37.000000000 -0400
@@ -0,0 +1,33 @@
+Bug#: 76501
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: informatique.internet at fiducial.fr               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Problem of double slashes in URIBuilder 
+
+If you execute the following code on mono :
+
+UriBuilder ub=new UriBuilder("http://mondomaine/trucmuche/login.aspx");
+ub.Query=ub.Query.TrimStart(new char[]{'?'})+"&ticket=bla";
+Console.WriteLine("(URIBUILDER)Redirige vers :" +ub.ToString());
+Console.ReadLine();
+
+you'll obtain :
+http://mondomaine:80//trucmuche/login.aspx?&ticket=bla
+(note the double / after :80)
+
+on MS.NET you'll obtain
+http://mondomaine:80/trucmuche/login.aspx?&ticket=bla
+
+I've done a little patch to solve this issue...


More information about the mono-bugs mailing list