mod_proxy_fcgi: Fix faulty logging of large amounts of stderr from the
authorJeff Trawick <trawick@apache.org>
Sat, 16 Aug 2014 19:15:02 +0000 (19:15 +0000)
committerJeff Trawick <trawick@apache.org>
Sat, 16 Aug 2014 19:15:02 +0000 (19:15 +0000)
application.

PR: 56858
Submitted by: Manuel Mausz <manuel-asf mausz.at>
Reviewed by: trawick

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1618401 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/proxy/mod_proxy_fcgi.c

diff --git a/CHANGES b/CHANGES
index 552fdab99e635db0fc66cd9b58815154525ad928..615cec02669a8f240664729c4fe49e32e0290043 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_proxy_fcgi: Fix faulty logging of large amounts of stderr from the
+     application.  PR 56858.  [Manuel Mausz <manuel-asf mausz.at>]
+
   *) mod_ratelimit: Drop severity of AH01455 and AH01457 (ap_pass_brigade
      failed) messages from ERROR to TRACE1.  Other filters do not bother 
      re-reporting failures from lower level filters.  PR56832.  [Eric Covener]
index d7ab5cbba250c58f62a616f6f43a3a9ee4756143..ab1118238bf09628871d30c2564725703100a528 100644 (file)
@@ -665,7 +665,7 @@ recv_again:
                 /* TODO: Should probably clean up this logging a bit... */
                 if (clen) {
                     ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01071)
-                                  "Got error '%s'", iobuf);
+                                  "Got error '%.*s'", (int)readbuflen, iobuf);
                 }
 
                 if (clen > readbuflen) {