[Mono-bugs] [Bug 82059][Nor] Changed - HttpPostedFile.FileName might contain Windows paths (e.g. "C:\TMP\test.txt")

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Aug 18 11:40:02 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 juraj at hotfeet.ch.

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

--- shadow/82059	2007-08-17 22:56:54.000000000 -0400
+++ shadow/82059.tmp.28959	2007-08-18 11:40:02.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 82059
 Product: Mono: Class Libraries
 Version: 1.2
 OS: unknown
 OS Details: FC6
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: Sys.Web
 AssignedTo: mhabersack at novell.com                            
 ReportedBy: juraj at hotfeet.ch               
 QAContact: mono-bugs at ximian.com
@@ -68,6 +68,16 @@
 need to do is to look at the leading part of the filename and if it is
 a n MS-DOS path designator, strip it. Opera and FireFox don't have
 this problem, so we don't need to worry about them.
 
 This bug has been fixed in svn trunk, revision 84343
 
+
+------- Additional Comments From juraj at hotfeet.ch  2007-08-18 11:40 -------
+There's a off-by-one error in your fix. The last backslash is not
+being stripped away.
+
+Remove the following line from the test case above, upload a file with
+IE, and you'll see the problem:
+fileName = MapPath("~/uploads/" + fileName);
+
+I'm attaching a fix for the fix, along with changlog entry. May I commit?


More information about the mono-bugs mailing list