feature-watchlist: Fix Potential XSS in do GET parameter

This commit is contained in:
Starbeamrainbowlabs 2021-09-02 21:21:17 +01:00
parent 96546184dc
commit dfe76d1d9b
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ register_module([
global $settings, $env, $pageindex;
// The thing we should do.
$do = $_GET["do"] ?? "null";
$do = slugify($_GET["do"] ?? "null");
// The location we should redirect to after doing it successfully, if anywhere
$returnto = empty($_GET["returnto"]) ? null : $_GET["returnto"];