correctly check for ssl enabled

This commit is contained in:
Evan Prodromou 2010-01-10 00:18:17 -08:00
parent 3d723ed1ed
commit 304f3b4f18

View File

@ -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;
}