Imported Upstream version 2.5.11
[libapache-mod-security.git] / apache2 / t / op / validateUrlEncoding.t
1 ### Empty
2 {
3         type => "op",
4         name => "validateUrlEncoding",
5         param => "",
6         input => "",
7         ret => 0,
8 },
9
10 ### General
11 {
12         type => "op",
13         name => "validateUrlEncoding",
14         param => "",
15         input => "Hello%20World!",
16         ret => 0,
17 },
18 {
19         type => "op",
20         name => "validateUrlEncoding",
21         param => "",
22         input => "Hello+World!",
23         ret => 0,
24 },
25 {
26         type => "op",
27         name => "validateUrlEncoding",
28         param => "",
29         input => "HelloWorld!",
30         ret => 0,
31 },
32 {
33         type => "op",
34         name => "validateUrlEncoding",
35         param => "",
36         input => "%00Hello%20World!",
37         ret => 0,
38 },
39 {
40         type => "op",
41         name => "validateUrlEncoding",
42         param => "",
43         input => "Hello%20World!%00",
44         ret => 0,
45 },
46 {
47         type => "op",
48         name => "validateUrlEncoding",
49         param => "",
50         input => "%00",
51         ret => 0,
52 },
53 {
54         type => "op",
55         name => "validateUrlEncoding",
56         param => "",
57         input => "%ff",
58         ret => 0,
59 },
60 {
61         type => "op",
62         name => "validateUrlEncoding",
63         param => "",
64         input => "%0",
65         ret => 1,
66 },
67 {
68         type => "op",
69         name => "validateUrlEncoding",
70         param => "",
71         input => "%f",
72         ret => 1,
73 },
74 {
75         type => "op",
76         name => "validateUrlEncoding",
77         param => "",
78         input => "%",
79         ret => 1,
80 },
81 {
82         type => "op",
83         name => "validateUrlEncoding",
84         param => "",
85         input => "%0z",
86         ret => 1,
87 },
88 {
89         type => "op",
90         name => "validateUrlEncoding",
91         param => "",
92         input => "%z0",
93         ret => 1,
94 },
95 {
96         type => "op",
97         name => "validateUrlEncoding",
98         param => "",
99         input => "%0%",
100         ret => 1,
101 },