summaryrefslogtreecommitdiff
path: root/app/install.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-01-04 23:35:42 +0100
committerGravatar GitHub <noreply@github.com> 2020-01-04 23:35:42 +0100
commit2aff347b2e942286292b21e0b20d93ab85220a17 (patch)
treea00c587dbaafe36da019dafca00b77357c3f58a8 /app/install.php
parentacc50df0efef8bd9fa937a5d640314c0e78e9117 (diff)
Fix wrong getHeader refactoring (#2749)
* Fix wrong getHeader refactoring Fix regression introduced by https://github.com/FreshRSS/FreshRSS/pull/2373 The refactoring required a call to init() even for static functions, which is most of the time not done. Removed premature abstraction of `$_SERVER`, which was the root cause of the bug. https://github.com/FreshRSS/FreshRSS/issues/2748#issuecomment-569898931 * Refactoring: Move serverIsPublic to Minz_Request * Add mitigations for wrong configurations Due to the regression, we have some existing configurations with a bad base_url * Forgot one instance
Diffstat (limited to 'app/install.php')
-rw-r--r--app/install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/install.php b/app/install.php
index 3737e2ccc..3158ffc6f 100644
--- a/app/install.php
+++ b/app/install.php
@@ -142,7 +142,7 @@ function saveStep2() {
'prefix' => $_SESSION['bd_prefix'],
'pdo_options' => [],
],
- 'pubsubhubbub_enabled' => server_is_public($base_url),
+ 'pubsubhubbub_enabled' => Minz_Request::serverIsPublic($base_url),
];
if (!empty($_SESSION['title'])) {
$config_array['title'] = $_SESSION['title'];