var/www/pages/index.php : clarify comment

This commit is contained in:
codeberg.org 2020-05-04 23:59:54 +02:00
parent b7cbd00f1d
commit 0e24c90354

View File

@ -41,7 +41,7 @@ $owner = strtolower(array_shift($parts));
$git_root = realpath("$git_prefix/$owner/pages.git"); $git_root = realpath("$git_prefix/$owner/pages.git");
$file_url = implode("/", $parts); $file_url = implode("/", $parts);
# Ensure that only files within the user's pages repository are accessed: # Ensure that only files within $git_root are accessed:
if (substr($git_root, 0, strlen($git_prefix)) !== $git_prefix) { if (substr($git_root, 0, strlen($git_prefix)) !== $git_prefix) {
send_response(404, "this user/organization does not have codeberg pages"); send_response(404, "this user/organization does not have codeberg pages");
} }