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
if (r->finfo.filetype != APR_REG)
return HTTP_FORBIDDEN;
+ if (r->path_info && *r->path_info && !r->used_path_info)
+ return HTTP_NOT_FOUND;
+
/* Load the isapi extention without caching (sconf == NULL)
* but note that we will recover an existing cached module.
*/
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))
if (r->finfo.filetype == APR_DIR)
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))