From 174b7d6a7a036844dcfe195f9190d3d683be38ae Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 1 Jun 2011 22:27:24 +0000 Subject: [PATCH] Add more super-cookie test cases to HttpTest; things like org & .org aren't being handled correctly either. Not super high prio but... should probably mark these tests broken if can't be fixed easily yet. --- tests/phpunit/includes/HttpTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/includes/HttpTest.php b/tests/phpunit/includes/HttpTest.php index 4e3364dc92..d54e7f4fa7 100644 --- a/tests/phpunit/includes/HttpTest.php +++ b/tests/phpunit/includes/HttpTest.php @@ -332,6 +332,10 @@ class HttpTest extends MediaWikiTestCase { function cookieDomains() { return array( + array( false, "org"), + array( false, ".org"), + array( true, "wikipedia.org"), + array( true, ".wikipedia.org"), array( false, "co.uk" ), array( false, ".co.uk" ), array( false, "gov.uk" ), -- 2.20.1