page-edit: add missing refresh header

This commit is contained in:
Starbeamrainbowlabs 2022-05-26 02:49:18 +01:00
parent e54bacdcac
commit 46f85c7b0c
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 0 deletions

View File

@ -415,6 +415,7 @@ window.addEventListener("load", function(event) {
http_response_code(403);
header("x-failure-reason: permissions-other-user-page");
header("content-type: text-plain");
header("refresh: 5; url=index.php?page=" . rawurlencode($env->page));
exit("Error: The page {$env->page} is a user page. You must be logged in as either that user or a moderator in order to edit it.");
}
if(!isset($_POST["content"]))