From 6fef70730793eccc4943bca48c47439cd19b213e Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Tue, 18 Feb 2014 14:52:12 +0100 Subject: Some tests for the cookie encryption feature from Ben --- tests/cookie/crypt.key_empty_remote_addr.phpt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/cookie/crypt.key_empty_remote_addr.phpt (limited to 'tests/cookie/crypt.key_empty_remote_addr.phpt') diff --git a/tests/cookie/crypt.key_empty_remote_addr.phpt b/tests/cookie/crypt.key_empty_remote_addr.phpt new file mode 100644 index 0000000..fb00766 --- /dev/null +++ b/tests/cookie/crypt.key_empty_remote_addr.phpt @@ -0,0 +1,27 @@ +--TEST-- +cookie encryption with empty key and REMOTE_ADDR set +--SKIPIF-- + +--INI-- +suhosin.cookie.encrypt=1 +suhosin.cookie.cryptkey= +suhosin.cookie.cryptua=0 +suhosin.cookie.cryptdocroot=0 +suhosin.cookie.cryptraddr=0 +suhosin.cookie.checkraddr=0 +;suhosin.cookie.cryptlist= +;suhosin.cookie.plainlist= +--ENV-- +return << +--EXPECTF-- +Set-Cookie: foo=EgJxlQxzPwoAcVFj395vssv3hy1rAem1lH9qZYUvRi8. \ No newline at end of file -- cgit v1.3