1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

AcceptPathInfo was totally backwards... it would reject when set to on and

by default and accept when set to off for the default handler, and would
reject only if set to accept for mod_cgi(d) and mod_isapi.

PR: 8234


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94751 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Cliff Woolley
2002-04-22 08:08:38 +00:00
parent a040b262c5
commit 768d65eeac
5 changed files with 25 additions and 9 deletions

View File

@@ -627,7 +627,10 @@ static int cgi_handler(request_rec *r)
return log_scripterror(r, conf, HTTP_FORBIDDEN, 0,
"attempt to invoke directory as script");
if (r->path_info && *r->path_info && !r->used_path_info) {
if ((r->used_path_info == AP_REQ_REJECT_PATH_INFO) &&
r->path_info && *r->path_info)
{
/* default to accept */
return log_scripterror(r, conf, HTTP_NOT_FOUND, 0,
"AcceptPathInfo off disallows user's path");
}