From 146b74968f6a56163bf2a618addbb5a7a03f4684 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 13 Nov 2017 11:53:04 +0100 Subject: The default value for "PATHINFO.PROT" is now "https" if $_SERVER['REQUEST_SCHEME'] is not defined (https://github.com/Nerdmind/Blog/issues/8). In addition, the default value for "PATHINFO.HOST" is now "localhost" if $_SERVER['HTTP_HOST'] is not defined. --- core/application.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/application.php b/core/application.php index fd8d474..4c7fdb2 100644 --- a/core/application.php +++ b/core/application.php @@ -52,8 +52,8 @@ $configuration = [ 'TEMPLATE.LANG' => 'en', 'ADMIN.TEMPLATE' => 'admin', 'ADMIN.LANGUAGE' => 'en', - 'PATHINFO.PROT' => $_SERVER['REQUEST_SCHEME'], - 'PATHINFO.HOST' => $_SERVER['HTTP_HOST'], + 'PATHINFO.PROT' => $_SERVER['REQUEST_SCHEME'] ?? 'https', + 'PATHINFO.HOST' => $_SERVER['HTTP_HOST'] ?? 'localhost', 'PATHINFO.BASE' => '', 'PAGE.DIRECTORY' => 'page', 'POST.DIRECTORY' => 'post', -- cgit v1.2.3