Skip to content

Commit 84ece3e

Browse files
victorhoraFelipe Zimmerle
authored and
Felipe Zimmerle
committed
Add test case for SecUnicodeMap
1 parent 065c2e6 commit 84ece3e

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1251 0434:64 043e:6f 0440:70

test/test-cases/regression/issue-1941.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,27 @@
4040
"SecRuleEngine On",
4141
"SecUnicodeMapFile does-not-exist-unicode.mapping eita"
4242
]
43-
}
44-
]
43+
},
44+
{
45+
"enabled":1,
46+
"version_min":209000,
47+
"version_max":-1,
48+
"title":"Test SecUnicodeMapFile: ... 4/n",
49+
"url":"https:\/\/github.com\/SpiderLabs\/ModSecurity\/issues\/1941",
50+
"request":{
51+
"uri":"/?param=дор",
52+
"headers":"",
53+
"body":"",
54+
"method":"GET",
55+
"http_version":1.1
56+
},
57+
"expected":{
58+
"debug_log": "Target value: \"dop\""
59+
},
60+
"rules":[
61+
"SecRuleEngine On",
62+
"SecUnicodeMapFile test-cases/data/unicode.mapping-reduced 1251",
63+
"SecRule ARGS \"@contains dop\" \"phase:1,id:999,deny,log,auditlog,t:none,t:utf8toUnicode,t:urlDecodeUni,multiMatch\""
64+
]
65+
}
66+
]

0 commit comments

Comments
 (0)