From: Evan Prodromou Date: Sun, 10 Jan 2010 08:19:46 +0000 (-0800) Subject: correctly check for ssl enabled X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=06ed0bc7913e6af0a4aaab93459148c690be70f1;p=quix0rs-gnu-social.git correctly check for ssl enabled --- diff --git a/actions/register.php b/actions/register.php index 108d05f5a7..ec6534eee0 100644 --- a/actions/register.php +++ b/actions/register.php @@ -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));