diff --git a/public_html/result/beam.php b/public_html/result/beam.php
index 2cc8016..e9f251c 100644
--- a/public_html/result/beam.php
+++ b/public_html/result/beam.php
@@ -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"]);
diff --git a/public_html/result/create.php b/public_html/result/create.php
index c359342..3773e8d 100644
--- a/public_html/result/create.php
+++ b/public_html/result/create.php
@@ -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"]);