From e1114beaed38b9b55b000dc90d3f76e684e93de3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 14 Mar 2007 19:28:40 +0000 Subject: - Patch #127753 by ChrisKennedy and GreenMother: regex error with session.cookie_domain settings. --- sites/default/settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sites') diff --git a/sites/default/settings.php b/sites/default/settings.php index e3ffc8fbc..ae011b744 100644 --- a/sites/default/settings.php +++ b/sites/default/settings.php @@ -140,7 +140,7 @@ ini_set('url_rewriter.tags', ''); * We try to set the correct cookie domain. */ if (isset($_SERVER['HTTP_HOST'])) { - $domain = '.'. preg_replace('`^www.`', '', $_SERVER['HTTP_HOST']); + $domain = '.'. preg_replace('`^www\.`', '', $_SERVER['HTTP_HOST']); // Per RFC 2109, cookie domains must contain at least one dot other than the // first. For hosts such as 'localhost', we don't set a cookie domain. if (count(explode('.', $domain)) > 2) { -- cgit v1.2.3