summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Fuhrmannek2021-09-23 10:40:01 +0200
committerBen Fuhrmannek2021-09-23 10:40:01 +0200
commit887e1c9d44fbcf5f23a928269034593b8521aaba (patch)
tree0a65470cda40642416e44187cbe3b184cac7a6b3
parenta99c0b3ba7ebbd27fd62f2bde3963354c2bf55e3 (diff)
comments on lookup table
-rw-r--r--src/sp_ifilter.c33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/sp_ifilter.c b/src/sp_ifilter.c
index 171138f..a475c1e 100644
--- a/src/sp_ifilter.c
+++ b/src/sp_ifilter.c
@@ -5,22 +5,23 @@ static void (*orig_register_server_variables)(zval *track_vars_array) = NULL;
5static const unsigned char sp_hexchars[] = "0123456789ABCDEF"; 5static const unsigned char sp_hexchars[] = "0123456789ABCDEF";
6 6
7static const char sp_is_dangerous_char[256] = { 7static const char sp_is_dangerous_char[256] = {
8 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 8/* |-> 0 1 2 3 4 5 6 7 8 9 a b c d e f */
9 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9/* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0,
10 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 10/* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
11 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 11/* 0x20 */ 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,
12 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12/* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0,
13 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
23 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 23/* 0xe0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
24/* 0xf0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
24}; 25};
25 26
26static void sp_server_strip(HashTable *svars, char *key, int keylen) { 27static void sp_server_strip(HashTable *svars, char *key, int keylen) {