Merge pull request #1242 from JanC/1241-trim-baseurl

[1241] Trim base url slashes
This commit is contained in:
Alex Tselegidis 2022-05-10 13:42:10 +02:00 committed by GitHub
commit 5de23ab889
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ $domain = $_SERVER['HTTP_HOST'] ?? 'localhost';
$request_uri = dirname($_SERVER['SCRIPT_NAME']); $request_uri = dirname($_SERVER['SCRIPT_NAME']);
$config['base_url'] = $protocol . $domain . $request_uri; $config['base_url'] = trim($protocol . $domain . $request_uri, "/");
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------