Remove Trailing slash for config_base_url during setup

This commit is contained in:
johnnyq 2023-12-21 19:18:45 -05:00
parent da73b6d634
commit f8702557c8
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ if (isset($_POST['add_database'])) {
$username = trim($_POST['username']);
$password = trim($_POST['password']);
$config_base_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['REQUEST_URI']);
$config_base_url = rtrim($config_base_url, '/');
$installation_id = randomString(32);