From: Evan Prodromou Date: Sun, 10 Jan 2010 08:18:17 +0000 (-0800) Subject: correctly check for ssl enabled X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=304f3b4f188d92720848ae1e3ac85ee04bd5ef71;p=quix0rs-gnu-social.git correctly check for ssl enabled --- diff --git a/actions/login.php b/actions/login.php index a2f853e3a4..ea9b96a46b 100644 --- a/actions/login.php +++ b/actions/login.php @@ -133,7 +133,7 @@ class LoginAction extends Action $url = common_get_returnto(); if (common_config('ssl', 'sometimes') && // mixed environment - common_config('site', 'server') != common_config('site', 'sslserver')) { + 0 != strcasecmp(common_config('site', 'server'), common_config('site', 'sslserver'))) { $this->redirectFromSSL($user, $url, $this->boolean('rememberme')); return; }