mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-02-23 12:23:58 +00:00
var/www/pages/index.php : clarify comment
This commit is contained in:
parent
b7cbd00f1d
commit
0e24c90354
@ -41,7 +41,7 @@ $owner = strtolower(array_shift($parts));
|
||||
$git_root = realpath("$git_prefix/$owner/pages.git");
|
||||
$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) {
|
||||
send_response(404, "this user/organization does not have codeberg pages");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user