diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php index 7f5c6ce..5ae027b 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -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; } |