summaryrefslogtreecommitdiff
path: root/www/apache/patches/patch-aq
blob: 3c4c78d42211e1f315243e4a03b466028a27d4bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-aq,v 1.2.4.1 2004/04/27 08:14:40 agc Exp $
SECURITY [CAN-2003-0020]: escape arbitrary data before writing into the errorlog

--- src/include/httpd.h.orig	2004-04-07 12:24:10.967724616 -0700
+++ src/include/httpd.h
@@ -1072,6 +1072,8 @@ API_EXPORT(char *) ap_escape_html(pool *
 API_EXPORT(char *) ap_construct_server(pool *p, const char *hostname,
 				    unsigned port, const request_rec *r);
 API_EXPORT(char *) ap_escape_logitem(pool *p, const char *str);
+API_EXPORT(size_t) ap_escape_errorlog_item(char *dest, const char *source,
+                                           size_t buflen);
 API_EXPORT(char *) ap_escape_shell_cmd(pool *p, const char *s);
 
 API_EXPORT(int) ap_count_dirs(const char *path);