summaryrefslogtreecommitdiff
path: root/tests/logging/use_x_forwarded_for_on.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/logging/use_x_forwarded_for_on.phpt')
-rw-r--r--tests/logging/use_x_forwarded_for_on.phpt12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/logging/use_x_forwarded_for_on.phpt b/tests/logging/use_x_forwarded_for_on.phpt
index 5f37ca9..e476ba7 100644
--- a/tests/logging/use_x_forwarded_for_on.phpt
+++ b/tests/logging/use_x_forwarded_for_on.phpt
@@ -3,12 +3,16 @@ Testing: suhosin.log.use-x-forwarded-for=On
3--SKIPIF-- 3--SKIPIF--
4<?php include "../skipifnotcli.inc"; ?> 4<?php include "../skipifnotcli.inc"; ?>
5--INI-- 5--INI--
6suhosin.log.syslog=0
6suhosin.log.sapi=0 7suhosin.log.sapi=0
7suhosin.log.stdout=255
8suhosin.log.script=0 8suhosin.log.script=0
9suhosin.log.syslog=0 9suhosin.log.file=255
10suhosin.log.file.time=0
11suhosin.log.file.name={PWD}/suhosintest.$$.log.tmp
12auto_append_file={PWD}/suhosintest.$$.log.tmp
10suhosin.executor.func.blacklist=max 13suhosin.executor.func.blacklist=max
11suhosin.log.use-x-forwarded-for=On 14suhosin.log.use-x-forwarded-for=On
15suhosin.simulation=1
12--ENV-- 16--ENV--
13return <<<END 17return <<<END
14REMOTE_ADDR=101.102.103.104 18REMOTE_ADDR=101.102.103.104
@@ -19,5 +23,5 @@ END;
19 max(1,2); 23 max(1,2);
20?> 24?>
21--EXPECTF-- 25--EXPECTF--
22Warning: max() has been disabled for security reasons in %s on line 2 26Warning: SIMULATION - max() has been disabled for security reasons in %s on line 2
23ALERT - function within blacklist called: max() (attacker '1.2.3.4', file '%s', line 2) \ No newline at end of file 27ALERT-SIMULATION - function within blacklist called: max() (attacker '1.2.3.4', file '%s', line 2) \ No newline at end of file