1 From RedHat's errata for 1.3.27
2 --- src/main/http_log.c.escape 2003-02-14 10:57:45.000000000 +0000
3 +++ src/main/http_log.c 2003-02-14 11:17:30.000000000 +0000
8 +/* Clean 'str' of non-printable characters. */
9 +static void sanitize(char *str, size_t len)
12 + /* iscntrl implies !isprint; redundant but paranoid. */
13 + if (!isprint(*str) || iscntrl(*str))
19 API_EXPORT(void) ap_open_logs(server_rec *s_main, pool *p)
24 len += ap_vsnprintf(errstr + len, sizeof(errstr) - len, fmt, args);
26 + /* clean of non-printable characters. */
27 + sanitize(errstr, len);
29 /* NULL if we are logging to syslog */