mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
Custom handling for empty request URI values
This commit is contained in:
parent
5a5c4333be
commit
307d44b6af
1 changed files with 5 additions and 0 deletions
|
@ -25,6 +25,11 @@ $domain = $_SERVER['HTTP_HOST'] ?? 'localhost';
|
|||
|
||||
$request_uri = dirname($_SERVER['SCRIPT_NAME']);
|
||||
|
||||
if ($request_uri === '.')
|
||||
{
|
||||
$request_uri = '';
|
||||
}
|
||||
|
||||
$config['base_url'] = trim($protocol . $domain . $request_uri, '/');
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue