httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51435] New: Regex match broken in Filter module
Date Sat, 25 Jun 2011 11:23:21 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51435

             Bug #: 51435
           Summary: Regex match broken in Filter module
           Product: Apache httpd-2
           Version: 2.2-HEAD
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_filter
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: adeel.e@gmail.com
    Classification: Unclassified


http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/filters/mod_filter.c?view=markup#l577

rxend = ap_strchr_c(match, '/');

should be:

rxend = ap_strrchr_c(match, '/');

Because a regex of /application//xml/ will match anything beginning with
"application", ie, application/zip as it is picking up the first slash as the
regex end.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message