From: Chris Darroch Date: Thu, 23 Aug 2012 20:57:32 +0000 (+0000) Subject: Apply the same length limit when logging Status header values X-Git-Tag: 2.5.0-alpha~6385 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56b1a71fe3de65fa7573bd05136c86ca81d44714;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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); }