]> git.mxchange.org Git - friendica.git/commitdiff
compare ssl_policy precisely in case somebody was bitten by template processor bug
authorfriendica <info@friendica.com>
Sat, 17 Mar 2012 09:36:59 +0000 (02:36 -0700)
committerfriendica <info@friendica.com>
Sat, 17 Mar 2012 09:36:59 +0000 (02:36 -0700)
boot.php

index 836900fc4a69059e0fbc0e4beaad3788e35c107a..b0a631170313de513e3db6415f9fa2f1be24ce0f 100755 (executable)
--- a/boot.php
+++ b/boot.php
@@ -385,7 +385,7 @@ class App {
                $scheme = $this->scheme;
 
                if((x($this->config,'system')) && (x($this->config['system'],'ssl_policy'))) {
-                       if($this->config['system']['ssl_policy'] == SSL_POLICY_FULL
+                       if(intval($this->config['system']['ssl_policy']) === intval(SSL_POLICY_FULL)
                                $scheme = 'https';
 
 //                     We need to populate the $ssl flag across the entire program before turning this on.