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 45280] New: REQUEST_FILENAME is not full local filesystem path
Date Wed, 25 Jun 2008 21:05:39 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45280

           Summary: REQUEST_FILENAME  is not full local filesystem path
           Product: Apache httpd-2
           Version: 2.2.8
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: edwin@bitstorm.nl
                CC: rse@apache.org


According to the documentation on
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html, the variable
REQUEST_FILENAME is the full local filesystem path:

"REQUEST_FILENAME 
The full local filesystem path to the file or script matching the request."

This seems not to be the case.

It seems the variable should be prefixed with DOCUMENT_ROOT to get the full
path.

Examples:
This does not trigger the rule:
RewriteCond %{REQUEST_FILENAME} -s

But this does:
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -s

Please update the documentation or the implementation.

I lost several hours over this and I guess I'm not the only one.


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