From 43df6cdf2a96b9cf878df3d512e2cd081acacec5 Mon Sep 17 00:00:00 2001 From: "codeberg.org" Date: Mon, 4 May 2020 22:13:36 +0200 Subject: [PATCH] var/www/pages/index.php : consistent string delimiters --- var/www/pages/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/var/www/pages/index.php b/var/www/pages/index.php index ce99185..8bb5c33 100644 --- a/var/www/pages/index.php +++ b/var/www/pages/index.php @@ -43,7 +43,7 @@ if (substr($git_root, 0, strlen($git_prefix)) !== $git_prefix) { send_response(404, "this user/organization does not have codeberg pages"); } -if (end($parts) === '') { +if (end($parts) === "") { array_pop($parts); } @@ -53,8 +53,8 @@ $file_url = implode("/", $parts); $command = "sh -c \"cd '$git_root' && /usr/bin/git ls-tree 'master:$file_url' > /dev/null\""; exec($command, $output, $retval); if ($retval === 0) { - if ($file_url !== '') - $file_url .= '/'; + if ($file_url !== "") + $file_url .= "/"; $file_url .= "index.html"; }