You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@apache.org on 2002/09/30 13:58:22 UTC
cvs commit: apache-1.3/src/main http_core.c
martin 2002/09/30 04:58:22
Modified: src/main http_core.c
Log:
Escape the request in the error_log file when encountering an invalid method
Revision Changes Path
1.317 +2 -1 apache-1.3/src/main/http_core.c
Index: http_core.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/http_core.c,v
retrieving revision 1.316
retrieving revision 1.317
diff -u -r1.316 -r1.317
--- http_core.c 21 Sep 2002 17:18:34 -0000 1.316
+++ http_core.c 30 Sep 2002 11:58:22 -0000 1.317
@@ -3840,7 +3840,8 @@
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) {