From 734b63adbaec009c08339d7ca243251964c8b6ef Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Thu, 15 Aug 2019 17:23:35 +0200 Subject: [PATCH] Fixed wrong "BaseUrl" class (=> "BaseURL") --- src/App.php | 2 +- src/Core/Authentication.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.php b/src/App.php index 0a7bab0e16..bb6d2a6e3a 100644 --- a/src/App.php +++ b/src/App.php @@ -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"); } diff --git a/src/Core/Authentication.php b/src/Core/Authentication.php index e75cc93e7f..d68a3e683b 100644 --- a/src/Core/Authentication.php +++ b/src/Core/Authentication.php @@ -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); } /**