From d6cff842056275da0ccc229e4f23a35b2521c9d0 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 28 Oct 2009 07:38:45 +0100 Subject: set cookie for whole domain which is needed for pretty URLs --- extensions/FunnyDot.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extensions') diff --git a/extensions/FunnyDot.php b/extensions/FunnyDot.php index 57b6418d..b45b8681 100644 --- a/extensions/FunnyDot.php +++ b/extensions/FunnyDot.php @@ -34,7 +34,7 @@ private static function getFunnyDot() { !isset($wgFunnyDotHash) && $wgFunnyDotHash = ''; $time = time(); $hash = substr(sha1($time.$wgFunnyDotHash), 0, 4); - setCookie('FunnyDotTime', $time); + setCookie('FunnyDotTime', $time, 0, '/', null, isset($_SERVER['HTTPS']), true); return '
@@ -139,10 +139,10 @@ function execute($par) { $time = $_COOKIE['FunnyDotTime']; } else { $time = time(); - setCookie('FunnyDotTime', $time); + setCookie('FunnyDotTime', $time, 0, '/', null, isset($_SERVER['HTTPS']), true); } - setCookie('FunnyDotHash', substr(sha1($time.$wgFunnyDotHash), 0, 4)); + setCookie('FunnyDotHash', substr(sha1($time.$wgFunnyDotHash), 0, 4), 0, '/', null, isset($_SERVER['HTTPS']), true); header('HTTP/1.1 200 OK'); header("Cache-Control: no-cache, must-revalidate"); -- cgit v1.2.2