From: Ken Coar Date: Fri, 25 Oct 2002 16:27:38 +0000 (+0000) Subject: more info is better than less.. X-Git-Tag: 2.0.44~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7392d9042a4588f4e69a3696d2bd1e1b759053c8;p=thirdparty%2Fapache%2Fhttpd.git more info is better than less.. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97302 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 23d02882857..12f63ee3df7 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,9 @@ Changes with Apache 2.0.44 + *) Emit a message to the error log when we return 404 because + the URI contained '%2f'. (This was previously nastily silent + and difficult to debug.) [Ken Coar] + *) Fix streaming output from an nph- CGI script. CGI:IRC now works. PR 8482 [Jeff Trawick] diff --git a/server/request.c b/server/request.c index af28372fbcb..d0f8376d57f 100644 --- a/server/request.c +++ b/server/request.c @@ -149,6 +149,12 @@ AP_DECLARE(int) ap_process_request_internal(request_rec *r) if (!r->proxyreq && r->parsed_uri.path) { access_status = ap_unescape_url(r->parsed_uri.path); if (access_status) { + if (access_status == HTTP_NOT_FOUND) { + ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, + "found %2f (encoded '/') in URI " + "(decoded='%s'), returning 404" + r->parsed_uri.path); + } return access_status; } }