]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correctly check for ssl enabled
authorEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 08:19:46 +0000 (00:19 -0800)
committerEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 08:19:46 +0000 (00:19 -0800)
actions/register.php

index 108d05f5a7e7137a8dcee3b60998ef31d4b46c37..ec6534eee042ff49a02b547a26a13cbe361c79f4 100644 (file)
@@ -260,8 +260,9 @@ class RegisterAction extends Action
                 // Re-init language env in case it changed (not yet, but soon)
                 common_init_language();
 
-                if (common_config('ssl', 'sometimes') && // mixed environment
-                    common_config('site', 'server') != common_config('site', 'sslserver')) {
+                if (common_config('site', 'ssl') == 'sometimes' && // mixed environment
+                    0 != strcasecmp(common_config('site', 'server'), common_config('site', 'sslserver'))) {
+
                     $url = common_local_url('all',
                                             array('nickname' =>
                                                   $user->nickname));