From: Eric Covener Date: Thu, 16 Mar 2017 18:41:59 +0000 (+0000) Subject: print r->uri during failure X-Git-Tag: 2.5.0-alpha~553 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dcaae91adeba2d206983edf3183f95d3341e1cee;p=apache print r->uri during failure in a subrequest, r->the_request will be the one from r->main, and it's not what we're checking above. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1787229 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index 113fe537ef..f95aa0da9c 100644 --- a/server/core.c +++ b/server/core.c @@ -4742,7 +4742,7 @@ AP_DECLARE_NONSTD(int) ap_core_translate(request_rec *r) } if (!r->uri || ((r->uri[0] != '/') && strcmp(r->uri, "*"))) { ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(00126) - "Invalid URI in request %s", r->the_request); + "Invalid URI in request '%s' '%s'", r->uri, r->the_request); return HTTP_BAD_REQUEST; }