[Mono-bugs] [Bug 385870] New: HttpPostedFile.FileName might contain Windows UNC paths ( e.g. "\\Server\Share\test.txt")

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri May 2 02:14:11 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=385870


           Summary: HttpPostedFile.FileName might contain Windows UNC paths
                    (e.g. "\\Server\Share\test.txt")
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: ivan at chimerical.com.au
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


This was partially addressed in Bug 324733.

The fix to /mcs/class/System.Web/System.Web/HttpRequest.cs addresses local or
mapped drives ("x:\" paths). It should also address UNC names ("\\" paths).

if (path.IndexOf (":\\") != 1) 
        return path;

Should be something like:

if (path.IndexOf (":\\") != 1 && !path.StartsWith("\\\\")) 
        return path;


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list