From: Martin Kraemer Date: Mon, 30 Sep 2002 11:58:22 +0000 (+0000) Subject: Escape the request in the error_log file when encountering an invalid method X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9cd3d5c006013cb2ba870e6956117eed74f9a5f;p=thirdparty%2Fapache%2Fhttpd.git Escape the request in the error_log file when encountering an invalid method git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@97029 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/main/http_core.c b/src/main/http_core.c index a2910aec29e..68ecc51cdfd 100644 --- a/src/main/http_core.c +++ b/src/main/http_core.c @@ -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) {