|
Index: httpd-2.4.25/server/test_char.h
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ httpd-2.4.25/server/test_char.h
|
|
@@ -0,0 +1,23 @@
|
|
+/* this file is automatically generated by gen_test_char, do not edit */
|
|
+#define T_ESCAPE_SHELL_CMD (1)
|
|
+#define T_ESCAPE_PATH_SEGMENT (2)
|
|
+#define T_OS_ESCAPE_PATH (4)
|
|
+#define T_HTTP_TOKEN_STOP (8)
|
|
+#define T_ESCAPE_LOGITEM (16)
|
|
+#define T_ESCAPE_FORENSIC (32)
|
|
+
|
|
+static const unsigned char test_char_table[256] = {
|
|
+ 32,62,62,62,62,62,62,62,62,62,63,62,62,62,62,62,62,62,62,62,
|
|
+ 62,62,62,62,62,62,62,62,62,62,62,62,14,0,23,6,1,38,1,1,
|
|
+ 9,9,1,0,8,0,0,10,0,0,0,0,0,0,0,0,0,0,40,15,
|
|
+ 15,8,15,15,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
+ 0,0,0,0,0,0,0,0,0,0,0,15,31,15,7,0,7,0,0,0,
|
|
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
+ 0,0,0,15,39,15,1,62,54,54,54,54,54,54,54,54,54,54,54,54,
|
|
+ 54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,
|
|
+ 54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,
|
|
+ 54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,
|
|
+ 54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,
|
|
+ 54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,
|
|
+ 54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54
|
|
+};
|
|
Index: httpd-2.4.25/server/util.c
|
|
===================================================================
|
|
--- httpd-2.4.25.orig/server/util.c
|
|
+++ httpd-2.4.25/server/util.c
|
|
@@ -96,6 +96,16 @@
|
|
#undef APLOG_MODULE_INDEX
|
|
#define APLOG_MODULE_INDEX AP_CORE_MODULE_INDEX
|
|
|
|
+#define T_ESCAPE_SHELL_CMD (0x01)
|
|
+#define T_ESCAPE_PATH_SEGMENT (0x02)
|
|
+#define T_OS_ESCAPE_PATH (0x04)
|
|
+#define T_HTTP_TOKEN_STOP (0x08)
|
|
+#define T_ESCAPE_LOGITEM (0x10)
|
|
+#define T_ESCAPE_FORENSIC (0x20)
|
|
+#define T_ESCAPE_URLENCODED (0x40)
|
|
+#define T_HTTP_CTRLS (0x80)
|
|
+#define T_VCHAR_OBSTEXT (0x100)
|
|
+
|
|
/*
|
|
* Examine a field value (such as a media-/content-type) string and return
|
|
* it sans any parameters; e.g., strip off any ';charset=foo' and the like.
|