From c83f05e284b6f908fc0dac3f30f631165d6bf43d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 9 Jun 2007 07:26:36 +0000 Subject: - Patch #150452 by JohnAlbin: fixed strict notice. --- includes/bootstrap.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes/bootstrap.inc') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 738e2b574..a2aa44742 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -311,7 +311,8 @@ function conf_init() { if (strpos($cookie_domain, 'www.') === 0) { $cookie_domain = substr($cookie_domain, 4); } - $cookie_domain = '.'. array_shift(explode(':', $cookie_domain)); + $cookie_domain = explode(':', $cookie_domain); + $cookie_domain = '.'. array_shift($cookie_domain); // Per RFC 2109, cookie domains must contain at least one dot other than the // first. For hosts such as 'localhost' or IP Addresses we don't set a cookie domain. if (count(explode('.', $cookie_domain)) > 2 && !is_numeric(str_replace('.', '', $cookie_domain))) { -- cgit v1.2.3