summaryrefslogtreecommitdiff
path: root/includes/bootstrap.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-06-09 07:26:36 +0000
committerDries Buytaert <dries@buytaert.net>2007-06-09 07:26:36 +0000
commitc83f05e284b6f908fc0dac3f30f631165d6bf43d (patch)
tree92abfb1458be5264b7bc6628738ddffed5ebbbac /includes/bootstrap.inc
parentb0f759516a9ae2dbbca29691850986044747e7e6 (diff)
downloadbrdo-c83f05e284b6f908fc0dac3f30f631165d6bf43d.tar.gz
brdo-c83f05e284b6f908fc0dac3f30f631165d6bf43d.tar.bz2
- Patch #150452 by JohnAlbin: fixed strict notice.
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r--includes/bootstrap.inc3
1 files changed, 2 insertions, 1 deletions
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))) {