From: Jerome Jutteau Date: Sun, 3 Jul 2022 15:17:32 +0000 (+0200) Subject: [BUGFIX] fix proposed web root during installation X-Git-Tag: 4.5.0~20 X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/commitdiff_plain/48fd211cd255ea9ff05d0556eed4b6033683794a [BUGFIX] fix proposed web root during installation Signed-off-by: Jerome Jutteau --- 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']); }