From b7cbd00f1d2128485ebc84e35dd551d9bd406a0c Mon Sep 17 00:00:00 2001 From: "codeberg.org" Date: Mon, 4 May 2020 23:51:46 +0200 Subject: [PATCH] var/www/pages/index.php : whitespaces --- var/www/pages/index.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/var/www/pages/index.php b/var/www/pages/index.php index 704d9a0..c1c7f77 100644 --- a/var/www/pages/index.php +++ b/var/www/pages/index.php @@ -12,19 +12,19 @@ if ($request_url === "/") { send_response(200, " - - Codeberg Pages - - -
-
-

Codeberg Pages. Static Pages for your Projects.

-

Create a repo named 'pages' in your user account or org, push static content, HTML, style, fonts, images.

-

Share your rendered content via:

https://" . $_SERVER["HTTP_HOST"] . "/<username>/

-

Welcome to Codeberg.org!

-
-
- + + Codeberg Pages + + +
+
+

Codeberg Pages. Static Pages for your Projects.

+

Create a repo named 'pages' in your user account or org, push static content, HTML, style, fonts, images.

+

Share your rendered content via:

https://" . $_SERVER["HTTP_HOST"] . "/<username>/

+

Welcome to Codeberg.org!

+
+
+ "); } @@ -51,14 +51,14 @@ $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/"; - if ($_SERVER['QUERY_STRING'] !== "") - $h .= "?" . $_SERVER['QUERY_STRING']; + $h = "Location: " . $request_url . "/"; + if ($_SERVER['QUERY_STRING'] !== "") + $h .= "?" . $_SERVER['QUERY_STRING']; header($h); exit(); } if ($file_url !== "") - $file_url .= "/"; + $file_url .= "/"; $file_url .= "index.html"; }