fix check for ssl diff in login

This commit is contained in:
Evan Prodromou 2010-01-10 00:23:26 -08:00
parent e2dee5fedb
commit 8c6ec0b59e

View File

@ -132,7 +132,7 @@ class LoginAction extends Action
$url = common_get_returnto();
if (common_config('ssl', 'sometimes') && // mixed environment
if (common_config('site', 'ssl') == 'sometimes' && // mixed environment
0 != strcasecmp(common_config('site', 'server'), common_config('site', 'sslserver'))) {
$this->redirectFromSSL($user, $url, $this->boolean('rememberme'));
return;