Commit 2953c24f by pupi1985

Fix double slash in default site_url option

parent e0e124c4
......@@ -365,7 +365,7 @@
else
switch ($name) {
case 'site_url':
$value='http://'.@$_SERVER['HTTP_HOST'].strtr(dirname($_SERVER['SCRIPT_NAME']), '\\', '/').'/';
$value='http://'.@$_SERVER['HTTP_HOST'].strtr(rtrim(dirname($_SERVER['SCRIPT_NAME']), '/'), '\\', '/').'/';
break;
case 'site_title':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment