mirror of
https://github.com/voc/streaming-website
synced 2024-09-20 14:31:55 +00:00
avoid double-slash when served from the root domain
This commit is contained in:
parent
869303b526
commit
ab87cf1cf5
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ function baseurl()
|
|||
|
||||
$base = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']) ? 'https://' : 'http://';
|
||||
$base .= $_SERVER['HTTP_HOST'];
|
||||
$base .= dirname($_SERVER['SCRIPT_NAME']).'/';
|
||||
$base .= rtrim(dirname($_SERVER['SCRIPT_NAME']), '/').'/';
|
||||
|
||||
return $base;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue