mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Apply the converse of the AcceptPathInfo patch for isapi's/cgi's.
The default behavior remains, accept PATH_INFO, but it may be expressly revoked with AcceptPathInfo Off git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92452 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -583,6 +583,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) {
|
||||
return log_scripterror(r, conf, HTTP_NOT_FOUND, 0,
|
||||
"AcceptPathInfo off disallows user's path");
|
||||
}
|
||||
/*
|
||||
if (!ap_suexec_enabled) {
|
||||
if (!ap_can_exec(&r->finfo))
|
||||
|
Reference in New Issue
Block a user