]> git.mxchange.org Git - friendica.git/commitdiff
Fixed wrong "BaseUrl" class (=> "BaseURL")
authorPhilipp Holzer <admin+github@philipp.info>
Thu, 15 Aug 2019 15:23:35 +0000 (17:23 +0200)
committerPhilipp Holzer <admin+github@philipp.info>
Thu, 15 Aug 2019 15:23:35 +0000 (17:23 +0200)
src/App.php
src/Core/Authentication.php

index 0a7bab0e16c0fdcf33db028ec107985dca06aa3d..bb6d2a6e3abab8f88b8a7c985d64434827b4c90c 100644 (file)
@@ -1131,7 +1131,7 @@ class App
                header("X-Friendica-Version: " . FRIENDICA_VERSION);
                header("Content-type: text/html; charset=utf-8");
 
-               if ($this->config->get('system', 'hsts') && ($this->baseURL->getSSLPolicy() == BaseUrl::SSL_POLICY_FULL)) {
+               if ($this->config->get('system', 'hsts') && ($this->baseURL->getSSLPolicy() == BaseURL::SSL_POLICY_FULL)) {
                        header("Strict-Transport-Security: max-age=31536000");
                }
 
index e75cc93e7ff26ad2304fc57001423a2502179486..d68a3e683be7019882a204ec49e45763ea770f09 100644 (file)
@@ -51,7 +51,7 @@ class Authentication extends BaseObject
                        $value = "";
                }
 
-               setcookie("Friendica", $value, $time, "/", "", (Config::get('system', 'ssl_policy') == BaseUrl::SSL_POLICY_FULL), true);
+               setcookie("Friendica", $value, $time, "/", "", (Config::get('system', 'ssl_policy') == App\BaseURL::SSL_POLICY_FULL), true);
        }
 
        /**