]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix check for ssl diff in login
authorEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 08:23:26 +0000 (00:23 -0800)
committerEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 08:23:26 +0000 (00:23 -0800)
actions/login.php

index ea9b96a46b73fa53b1d6a6cce5d79f1e60c3edc9..8694de188e73575e398e265b5a9c0323f5db33c9 100644 (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;