Ridded of XSS flaw

This commit is contained in:
Jaidyn Lev 2018-11-10 14:02:10 -06:00
parent 167012a2f6
commit 0e42f22c9e
2 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,8 @@ include("../../resources/library/main.php");
$item = strtolower($GLOBALS["file_beam_item"]);
$filename = $_GET["success"];
$error = $_GET["error"];
$filename = sanitize_filename($_GET["success"]);
$error = sanitize_filename($_GET["error"]);

View File

@ -4,8 +4,8 @@ include("../../resources/library/main.php");
$item = strtolower($GLOBALS["url_aliasize_item"]);
$filename = $_GET["success"];
$error = $_GET["error"];
$filename = sanitize_filename($_GET["success"]);
$error = sanitize_filename($_GET["error"]);