1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/www/mod_blowchunks/files/patch-mod_blowchunks-1.3.c
Anders Nordby e750702899 Add mod_blowchunks, an Apache module to reject and log chunked requests.
Useful for those that want to log attempts to exploit that recent Apache
vulnerability, or who need or want to use their current Apache version
for some reason.
2002-06-22 22:50:33 +00:00

14 lines
454 B
C

--- mod_blowchunks-1.3.c.orig Sat Jun 22 22:44:01 2002
+++ mod_blowchunks-1.3.c Sat Jun 22 22:45:18 2002
@@ -56,8 +56,10 @@
ap_table_do(blowchunks_check_one_header,&found,r->headers_in,
"Transfer-Encoding",NULL);
if (found==TRUE) {
+#ifdef LOG_BLOWCHUNK
ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r,
"Transfer-Encoding: chunked - denied and logged");
+#endif
return HTTP_BAD_REQUEST;
}
return DECLINED;