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

action-protect: fix

This commit is contained in:
Starbeamrainbowlabs 2021-09-02 22:29:39 +01:00
parent d5ef65ce01
commit 51be347000
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 2 additions and 1 deletions

View file

@ -27,6 +27,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
- `action=watchlist-edit`: `returnto`, `do`
- `action=watchlist`: `format`
- `action=hash`: `string`
- `action=protect`: `page`
- [security] Automatically run page titles through `htmlentities()`
- Fixed a weird bug in the `stats-update` action causing warnings
- search: Properly apply weightings of matches in page titles and tags

View file

@ -53,7 +53,7 @@ register_module([
$state = ($pageindex->$page->protect ? "enabled" : "disabled");
$title = "Page protection $state.";
exit(page_renderer::render_main($title, "<p>Page protection for $env->page has been $state.</p><p><a href='?action=$settings->defaultaction&page=$env->page'>Go back</a>."));
exit(page_renderer::render_main($title, "<p>Page protection for $env->page_safe has been $state.</p><p><a href='?action=$settings->defaultaction&page=".rawurlencode($env->page)."'>Go back</a>."));
}
else
{