From 38ab08749818d8404a4d4ee1a083b7cc30a7ee5d Mon Sep 17 00:00:00 2001 From: Chris Darroch Date: Thu, 23 Aug 2012 20:57:32 +0000 Subject: [PATCH] Apply the same length limit when logging Status header values as used when logging invalid header lines. Application of a limit on logged header data suggested by Jeff Trawick. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1376695 13f79535-47bb-0310-9956-ffa450edef68 --- server/util_script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/util_script.c b/server/util_script.c index 703d1600947..ca246dac679 100644 --- a/server/util_script.c +++ b/server/util_script.c @@ -591,11 +591,11 @@ AP_DECLARE(int) ap_scan_script_header_err_core_ex(request_rec *r, char *buffer, r->status = cgi_status = atoi(l); if (!ap_is_HTTP_VALID_RESPONSE(cgi_status)) ap_log_rerror(SCRIPT_LOG_MARK, APLOG_ERR|APLOG_TOCLIENT, 0, r, - "Invalid status line from script '%s': %s", + "Invalid status line from script '%s': %.30s", apr_filepath_name_get(r->filename), l); else ap_log_rerror(SCRIPT_LOG_MARK, APLOG_TRACE1, 0, r, - "Status line from script '%s': %s", + "Status line from script '%s': %.30s", apr_filepath_name_get(r->filename), l); r->status_line = apr_pstrdup(r->pool, l); } -- 2.47.3