]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Escape the request in the error_log file when encountering an invalid method
authorMartin Kraemer <martin@apache.org>
Mon, 30 Sep 2002 11:58:22 +0000 (11:58 +0000)
committerMartin Kraemer <martin@apache.org>
Mon, 30 Sep 2002 11:58:22 +0000 (11:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@97029 13f79535-47bb-0310-9956-ffa450edef68

src/main/http_core.c

index a2910aec29e6dda115be63c467abc793f616a968..68ecc51cdfd6b1e497346d52361c7c2c86de5215 100644 (file)
@@ -3840,7 +3840,8 @@ static int default_handler(request_rec *r)
 
     if (r->method_number == M_INVALID) {
        ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r,
-                   "Invalid method in request %s", r->the_request);
+                   "Invalid method in request %s",
+                   ap_escape_logitem(r->pool, r->the_request));
        return NOT_IMPLEMENTED;
     }
     if (r->method_number == M_OPTIONS) {