remove more slashes
This commit is contained in:
parent
6dc39fe39f
commit
dbfd747dd3
@ -757,7 +757,9 @@ function get_base_href() {
|
|||||||
}
|
}
|
||||||
assert(!empty($ok_var));
|
assert(!empty($ok_var));
|
||||||
$dir = dirname($ok_var);
|
$dir = dirname($ok_var);
|
||||||
if($dir === "/" || $dir === "\\") $dir = "";
|
$dir = str_replace("\\", "/", $dir);
|
||||||
|
$dir = str_replace("//", "/", $dir);
|
||||||
|
$dir = rtrim($dir, "/");
|
||||||
return $dir;
|
return $dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user