[Mono-bugs] [Bug 654476] New: HttpRuntime::Validate incorrectly thinks ', ' is an invalid char

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 17 17:36:57 EST 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=654476#c0


           Summary: HttpRuntime::Validate incorrectly thinks ',' is an
                    invalid char
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: jaharper at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


HttpRuntime::Validate uses the HttpRuntimeSection::RequestPathInvalidCharacters
property to get a list of invalid chars.  This is a comma separated list of
chars. However Validate does not treat the list as a comma separated list, it
thinks its just a list of invalid chars so it incorrectly checks like this:

path.IndexOfAny (invalidChars)

probably the best thing to do is split the RequestPathInvalidCharacters
property on the ',' char and set invalidChars from that.  I'm not sure what
should happen if someone wants , to be an invalid char.

-- 
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