From 1276b93c918c77313bc3c91635eb9ae7d7ada17a Mon Sep 17 00:00:00 2001 From: danpros Date: Mon, 4 Dec 2023 11:49:53 +0700 Subject: [PATCH] Remove port 443 during installation --- config/config.ini.example | 2 +- install.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.ini.example b/config/config.ini.example index 4010170..f593661 100644 --- a/config/config.ini.example +++ b/config/config.ini.example @@ -1,4 +1,4 @@ -; The URL of your blog. Include the http or https if you are using Facebook or Disqus comment. +; The URL of your blog. site.url = "" ; Your timezone diff --git a/install.php b/install.php index d414e42..91cd835 100644 --- a/install.php +++ b/install.php @@ -105,7 +105,7 @@ class Settings $dir = ''; } $port = ''; - if ($_SERVER["SERVER_PORT"] != "80") { + if ($_SERVER["SERVER_PORT"] != "80" && $_SERVER["SERVER_PORT"] != "443") { $port = ':' . $_SERVER["SERVER_PORT"]; } $scheme = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http';