From a97ed90edffe24276f7707d965a5dac08f2c42fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Malo?= Date: Thu, 26 Aug 2004 20:50:55 +0000 Subject: [PATCH] #ifndef AP_UNSAFE_ERROR_LOG_UNESCAPED the stderr to errorlog stuff 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index 66116b599f5..66fbe5f4014 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -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, -- 2.47.3