var/www/pages/index.php : whitespaces

This commit is contained in:
codeberg.org 2020-05-04 23:51:46 +02:00
parent 03508f2470
commit b7cbd00f1d

View file

@ -51,7 +51,7 @@ $command = "sh -c \"cd '$git_root' && /usr/bin/git ls-tree 'master:$file_url' >
exec($command, $output, $retval);
if ($retval === 0) {
if (substr($request_url, -1) !== "/") {
$h = "Location: $request_url/";
$h = "Location: " . $request_url . "/";
if ($_SERVER['QUERY_STRING'] !== "")
$h .= "?" . $_SERVER['QUERY_STRING'];
header($h);