summaryrefslogtreecommitdiff
path: root/tests/filter
diff options
context:
space:
mode:
authorStefan Esser2014-02-12 19:31:41 +0100
committerStefan Esser2014-02-12 19:31:41 +0100
commit0b6f0ba5feeef8b7f5069736db795c184ae9ff57 (patch)
tree48c3ba389f89850783d4d5d8392182b79ecc49d2 /tests/filter
parent5775082d4c034dbff101b32a8a0ef860cd24ec34 (diff)
Test for allowing whitespace
Diffstat (limited to 'tests/filter')
-rw-r--r--tests/filter/get_filter_allow_ws.phpt56
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/filter/get_filter_allow_ws.phpt b/tests/filter/get_filter_allow_ws.phpt
new file mode 100644
index 0000000..41b230e
--- /dev/null
+++ b/tests/filter/get_filter_allow_ws.phpt
@@ -0,0 +1,56 @@
1--TEST--
2suhosin input filter (allow whitespace)
3--INI--
4suhosin.log.syslog=0
5suhosin.log.sapi=0
6suhosin.log.stdout=255
7suhosin.log.script=0
8suhosin.request.disallow_ws=0
9suhosin.get.disallow_ws=0
10suhosin.post.disallow_ws=0
11suhosin.cookie.disallow_ws=0
12--SKIPIF--
13<?php include('skipif.inc'); ?>
14--COOKIE--
15+var1=1;var2=2;%20var3=3; var4=4;
16--GET--
17+var1=1&var2=2&%20var3=3& var4=4&
18--POST--
19+var1=1&var2=2&%20var3=3& var4=4&
20--FILE--
21<?php
22var_dump($_GET);
23var_dump($_POST);
24var_dump($_COOKIE);
25?>
26--EXPECTF--
27array(4) {
28 ["var1"]=>
29 string(1) "1"
30 ["var2"]=>
31 string(1) "2"
32 ["var3"]=>
33 string(1) "3"
34 ["var4"]=>
35 string(1) "4"
36}
37array(4) {
38 ["var1"]=>
39 string(1) "1"
40 ["var2"]=>
41 string(1) "2"
42 ["var3"]=>
43 string(1) "3"
44 ["var4"]=>
45 string(1) "4"
46}
47array(4) {
48 ["var1"]=>
49 string(1) "1"
50 ["var2"]=>
51 string(1) "2"
52 ["var3"]=>
53 string(1) "3"
54 ["var4"]=>
55 string(1) "4"
56} \ No newline at end of file