From 48fd211cd255ea9ff05d0556eed4b6033683794a Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Sun, 3 Jul 2022 17:17:32 +0200 Subject: [PATCH] [BUGFIX] fix proposed web root during installation Signed-off-by: Jerome Jutteau --- lib/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.php b/lib/functions.php index 95a5595..536bfe1 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -1562,5 +1562,5 @@ function jirafeau_add_ending_slash($path) function jirafeau_default_web_root() { - return $_SERVER['HTTP_HOST'] . str_replace(basename(__FILE__), '', $_SERVER['REQUEST_URI']); + return $_SERVER['HTTP_HOST'] . str_replace('install.php', '', $_SERVER['REQUEST_URI']); } -- 2.34.1