mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-24 17:13:01 +00:00
feature-watchlist: fix format GET parameter
This commit is contained in:
parent
4fdbd9a427
commit
b6fc5941b7
2 changed files with 3 additions and 2 deletions
|
@ -24,7 +24,8 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
|
|||
- [security] Fix stored XSS attack in the wiki name via the first run wizard [CVE-2021-38600](https://github.com/hmaverickadams/CVE-2021-38600); low severity since it requires the site secret to do the initial setup & said initial setup can only be performed once
|
||||
- [security] Fix reflected XSS attack (arbitrary code execution in the user's browser) via the following GET parameters
|
||||
- `action`
|
||||
- `action=watchlist`: `returnto`, `do`
|
||||
- `action=watchlist-edit`: `returnto`, `do`
|
||||
- `action=watchlist`: `format`
|
||||
- Fixed a weird bug in the `stats-update` action causing warnings
|
||||
- search: Properly apply weightings of matches in page titles and tags
|
||||
- Improved error handling on first run where the PHP Zip extension is not installed
|
||||
|
|
|
@ -51,7 +51,7 @@ register_module([
|
|||
exit(page_renderer::render_main("No email address specified -$settings->sitename", "<p>You are logged in, but have not specified an email address to send notifications to. Try specifying one in your <a href='?action=user-preferences'>user preferences</a> and then coming back here.</p>"));
|
||||
}
|
||||
|
||||
$format = $_GET["format"] ?? "html";
|
||||
$format = slugify($_GET["format"] ?? "html");
|
||||
|
||||
$watchlist = [];
|
||||
if(!empty($env->user_data->watchlist))
|
||||
|
|
Loading…
Reference in a new issue