Fix essential security bug

This commit is contained in:
Bye 2024-03-29 22:02:39 +00:00 committed by GitHub
parent 3246a9992d
commit 004009ca51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -190,10 +190,10 @@ if ($migrated) {
echo "<h2 class=\"subheading\">Admin</h2>"; echo "<h2 class=\"subheading\">Admin</h2>";
} }
// if ($uri[0] == "admin" && !$user['is_admin']) { if ($uri[0] == "admin" && !$user['is_admin']) {
// http_response_code(401); http_response_code(401);
// die("<img src='https://http.cat/401.jpg' alt='A cat standing in front of a door with a No Cats Allowed sign on it.' />"); die("<img src='https://http.cat/401.jpg' alt='A cat standing in front of a door with a No Cats Allowed sign on it.' />");
// } }
if ($uri[0] == "docs") { if ($uri[0] == "docs") {
$include = "docs.php"; $include = "docs.php";