You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/06/05 23:23:08 UTC
DO NOT REPLY [Bug 20524] New: -
Regular expressions in and do not work as expected
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20524>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20524
Regular expressions in <Directory ~ ...> and <DirectoryMatch ...> do not work as expected
Summary: Regular expressions in <Directory ~ ...> and
<DirectoryMatch ...> do not work as expected
Product: Apache httpd-1.3
Version: 1.3.27
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: core
AssignedTo: bugs@httpd.apache.org
ReportedBy: j.mos@gmx.net
Regular Expressions in <Directory ~ ...> and <DirectoryMatch ...> which end
in a $ sign do not work at all (i.e. the directives within such a Directory
Container never get applied).
Consider the following simple example:
<DirectoryMatch "^.*$">
SetHandler cgi-script
Options ExecCGI
</DirectoryMatch>
This Directory Container should match every Directory and thus any file
should be treated as a CGI script.
But actually with the above Container no(!) file gets treated as a CGI script.
If the trailing $ sign is removed from the regular expression then everything
works as expected (i.e. now indeed any file is served as a CGI script).
Since any string (directory) which matches the regular expression "^.*" also
matches "^.*$" this clearly is a bug in the Apache HTTP server.
According to the documentation
http://httpd.apache.org/docs/mod/core.html#directory
it should be possible to use the $ sign as end-of-string indicator.
Could anyone please test if this bug occurs on other installations, too ?
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org