Skip to content

Commit

Permalink
MFH: - Fixed bug #31717: Reject PATH_INFO if "AcceptPathInfo off" is …
Browse files Browse the repository at this point in the history
…used.
  • Loading branch information
Joe Orton committed Mar 10, 2005
1 parent 1147c22 commit 6cd9eb9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sapi/apache2handler/sapi_apache2.c
Expand Up @@ -471,6 +471,16 @@ static int php_handler(request_rec *r)
}
}

/* Give a 404 if PATH_INFO is used but is explicitly disabled in
* the configuration; default behaviour is to accept. */
if (r->used_path_info == AP_REQ_REJECT_PATH_INFO
&& r->path_info && r->path_info[0]) {
zend_try {
zend_ini_deactivate(TSRMLS_C);
} zend_end_try();
return HTTP_NOT_FOUND;
}

/* handle situations where user turns the engine off */
if (!AP2(engine)) {
zend_try {
Expand Down

0 comments on commit 6cd9eb9

Please sign in to comment.