summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-10 00:18:17 -0800
committerEvan Prodromou <evan@status.net>2010-01-10 00:18:17 -0800
commit304f3b4f188d92720848ae1e3ac85ee04bd5ef71 (patch)
treed663fa2c265650b075f2007d6cc48d4756261831
parent3d723ed1ed0755a4ad30e1d3388d663f53193295 (diff)
correctly check for ssl enabled
-rw-r--r--actions/login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/login.php b/actions/login.php
index a2f853e3a..ea9b96a46 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;
}