httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54308] New: AliasMatch implicitly folds/matches any number of leading slashes
Date Sat, 15 Dec 2012 17:37:59 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54308

            Bug ID: 54308
           Summary: AliasMatch implicitly folds/matches any number of
                    leading slashes
           Product: Apache httpd-2
           Version: 2.4-HEAD
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_alias
          Assignee: bugs@httpd.apache.org
          Reporter: calestyo@scientia.net
    Classification: Unclassified

Hi.

For some background info, please have a look at bug #54307.

In short:
Alias/AliasMatch behaves similarly to Location vs. LocationMatch, in the sense
that the non-Match-version will fold any number of consecutive slashes (/) to
one slash, while the Match-version will not.

In other words:
AliasMatch "^/foo/bar$" /some/file
will apply to URIs:
/foo/bar
but _not_ to:
/foo///bar
////foo////bar


Now (and this I consider a functional bug) it seems that there is however one
exception (and AFAICS, this is also different from Location vs. LocationMatch):
AliasMatch _does_ fold any leading consecutive slashes into one, so the above
example _will_ e.g. apply to:
////foo/bar
//foo/bar


In case this is not accepted as a functional bug, this behaviour should be
documented along with what I've already suggested in bug #54307.

Cheers,
Chris.

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