1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-24 17:13:01 +00:00

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

View file

@ -415,6 +415,7 @@ window.addEventListener("load", function(event) {
http_response_code(403); http_response_code(403);
header("x-failure-reason: permissions-other-user-page"); header("x-failure-reason: permissions-other-user-page");
header("content-type: text-plain"); 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."); 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"])) if(!isset($_POST["content"]))