correctly check for ssl enabled
This commit is contained in:
parent
3d723ed1ed
commit
304f3b4f18
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user