diff options
Diffstat (limited to 'sites')
-rw-r--r-- | sites/default/settings.php | 2 |
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) { |