[Mono-bugs] [Bug 81960][Min] New - System.Uri constructors do not strip newline characters off string

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jun 27 23:14:25 EDT 2007


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 buchan at gmail.com.

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

--- shadow/81960	2007-06-27 23:14:25.000000000 -0400
+++ shadow/81960.tmp.14717	2007-06-27 23:14:25.000000000 -0400
@@ -0,0 +1,51 @@
+Bug#: 81960
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: buchan at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Uri constructors do not strip newline characters off string
+
+Description of Problem:
+Newline characters are not trimmed off of passed strings.
+
+Steps to reproduce the problem:
+
+using System;
+
+public class main
+
+{
+
+	static void Main(string[] args)
+	{
+
+		Uri uri = new Uri("file:///home/buchan\n");
+
+		Console.Out.WriteLine(uri + "UHOH");
+
+	}
+
+		
+
+}
+
+
+Actual Results:
+On Mono,
+file:///home/buchan
+UHOH
+
+Expected Results:
+On .NET,
+file:///home/buchanUHOH


More information about the mono-bugs mailing list