]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
#ifndef AP_UNSAFE_ERROR_LOG_UNESCAPED the stderr to errorlog stuff
authorAndré Malo <nd@apache.org>
Thu, 26 Aug 2004 20:50:55 +0000 (20:50 +0000)
committerAndré Malo <nd@apache.org>
Thu, 26 Aug 2004 20:50:55 +0000 (20:50 +0000)
for those who don't want to escape (as in server/log.c)

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

modules/generators/mod_cgi.c

index 66116b599f579dc3a077d40ddd295d2d99f345e8..66fbe5f40145005d7fe88926068cac7e73450666 100644 (file)
@@ -359,7 +359,14 @@ static void cgi_child_errfn(apr_pool_t *pool, apr_status_t err,
                     "(%d)%s: %s\n",
                     err,
                     apr_strerror(err, errbuf, sizeof(errbuf)),
-                    ap_escape_logitem(pool, description));
+#ifndef AP_UNSAFE_ERROR_LOG_UNESCAPED
+                    ap_escape_logitem(pool,
+#endif
+                    description
+#ifndef AP_UNSAFE_ERROR_LOG_UNESCAPED
+                    )
+#endif
+                    );
 }
 
 static apr_status_t run_cgi_child(apr_file_t **script_out,