APACHE 2.0 STATUS: -*-text-*-
-Last modified at [$Date: 2004/09/02 20:09:28 $]
+Last modified at [$Date: 2004/09/02 22:06:22 $]
Release:
native chars here and it will be converted later? (I'm not sure)
(2) I'd put out (null) only if val is NULL, not if it's empty.
- *) Escape errfn strings before sending them to the log file (and
- analogus patch to mod_cgid)
- http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/generators/mod_cgi.c?r1=1.167&r2=1.168
- +1: stoddard, trawick, jorton
- nd: I'd like to add 1.169
- trawick: 1.169 is fine with me
-
*) Add -l option to rotatelogs to let it use local time rather than
UTC. PR 24417. [Ken Coar, Uli Zappe <uli ritual.org>]
support/rotatelogs.c: r1.33, r1.34, r1.35
char errbuf[200];
apr_file_open_stderr(&stderr_log, pool);
+ /* Escape the logged string because it may be something that
+ * came in over the network.
+ */
apr_file_printf(stderr_log,
"(%d)%s: %s\n",
err,
apr_strerror(err, errbuf, sizeof(errbuf)),
- description);
+#ifdef AP_UNSAFE_ERROR_LOG_UNESCAPED
+ description
+#else
+ ap_escape_logitem(pool, description)
+#endif
+ );
}
static apr_status_t run_cgi_child(apr_file_t **script_out,
* have r->headers_in and possibly other storage referenced by
* ap_log_rerror()
*/
- ap_log_error(APLOG_MARK, APLOG_ERR, err, r->server, "%s", description);
+ ap_log_error(APLOG_MARK, APLOG_ERR, err, r->server, "%s",
+#ifdef AP_UNSAFE_ERROR_LOG_UNESCAPED
+ description
+#else
+ ap_escape_logitem(pool, description)
+#endif
+ );
}
static int cgid_server(void *data)