Skip to content
Snippets Groups Projects
Unverified Commit 004009ca authored by Bye's avatar Bye Committed by GitHub
Browse files

Fix essential security bug

parent 3246a999
No related branches found
No related tags found
1 merge request!1Update production branch so it can be used
......@@ -190,10 +190,10 @@ if ($migrated) {
echo "<h2 class=\"subheading\">Admin</h2>";
}
// if ($uri[0] == "admin" && !$user['is_admin']) {
// 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.' />");
// }
if ($uri[0] == "admin" && !$user['is_admin']) {
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.' />");
}
if ($uri[0] == "docs") {
$include = "docs.php";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment