mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-01-19 08:57:55 +00:00
var/www/pages/index.php : whitespaces
This commit is contained in:
parent
03508f2470
commit
b7cbd00f1d
1 changed files with 17 additions and 17 deletions
|
@ -51,7 +51,7 @@ $command = "sh -c \"cd '$git_root' && /usr/bin/git ls-tree 'master:$file_url' >
|
||||||
exec($command, $output, $retval);
|
exec($command, $output, $retval);
|
||||||
if ($retval === 0) {
|
if ($retval === 0) {
|
||||||
if (substr($request_url, -1) !== "/") {
|
if (substr($request_url, -1) !== "/") {
|
||||||
$h = "Location: $request_url/";
|
$h = "Location: " . $request_url . "/";
|
||||||
if ($_SERVER['QUERY_STRING'] !== "")
|
if ($_SERVER['QUERY_STRING'] !== "")
|
||||||
$h .= "?" . $_SERVER['QUERY_STRING'];
|
$h .= "?" . $_SERVER['QUERY_STRING'];
|
||||||
header($h);
|
header($h);
|
||||||
|
|
Loading…
Reference in a new issue