summaryrefslogtreecommitdiff
path: root/sites
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-03-14 19:28:40 +0000
committerDries Buytaert <dries@buytaert.net>2007-03-14 19:28:40 +0000
commite1114beaed38b9b55b000dc90d3f76e684e93de3 (patch)
treee6db3aed762796b16c449b2261f5cde6a2035e42 /sites
parent23e36f7bbece019f0df9eae1746a4ab4dfbcfc8a (diff)
downloadbrdo-e1114beaed38b9b55b000dc90d3f76e684e93de3.tar.gz
brdo-e1114beaed38b9b55b000dc90d3f76e684e93de3.tar.bz2
- Patch #127753 by ChrisKennedy and GreenMother: regex error with session.cookie_domain settings.
Diffstat (limited to 'sites')
-rw-r--r--sites/default/settings.php2
1 files changed, 1 insertions, 1 deletions
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) {