]> granicus.if.org Git - apache/commitdiff
print r->uri during failure
authorEric Covener <covener@apache.org>
Thu, 16 Mar 2017 18:41:59 +0000 (18:41 +0000)
committerEric Covener <covener@apache.org>
Thu, 16 Mar 2017 18:41:59 +0000 (18:41 +0000)
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

server/core.c

index 113fe537ef2e30850c155406fcc9cbb086757d6a..f95aa0da9ccda9ebcf0ca113708b09de98a4162f 100644 (file)
@@ -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;
     }