From 9bf0144003c57185d06d61f73328128b55eedaef Mon Sep 17 00:00:00 2001 From: Jaidyn Lev Date: Tue, 9 Oct 2018 19:42:44 -0500 Subject: [PATCH] Fixed file-extension substitution --- public_html/private/beam.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/private/beam.php b/public_html/private/beam.php index d323f7b..6a037c8 100644 --- a/public_html/private/beam.php +++ b/public_html/private/beam.php @@ -7,7 +7,7 @@ $file_ext = file_extension($file_name); if (!empty($_POST["desired_filename"])) { $file_name = $_POST["desired_filename"]; if (!file_extension($file_name)) { - $file_name = $file_name . $file_ext; + $file_name = $file_name . "." . $file_ext; } } $file_name = sanitize_filename($file_name);