]> granicus.if.org Git - apache/commitdiff
Apply the same length limit when logging Status header values
authorChris Darroch <chrisd@apache.org>
Thu, 23 Aug 2012 20:57:32 +0000 (20:57 +0000)
committerChris Darroch <chrisd@apache.org>
Thu, 23 Aug 2012 20:57:32 +0000 (20:57 +0000)
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

index 703d16009472b34d73e0b36e64c9c9d63380dfa9..ca246dac67953261bac6e3f41c8c38836d9213ac 100644 (file)
@@ -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);
         }