From: André Malo Date: Thu, 26 Aug 2004 20:50:55 +0000 (+0000) Subject: #ifndef AP_UNSAFE_ERROR_LOG_UNESCAPED the stderr to errorlog stuff X-Git-Tag: STRIKER_2_1_0_RC1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a97ed90edffe24276f7707d965a5dac08f2c42fa;p=thirdparty%2Fapache%2Fhttpd.git #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 --- 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,