From 1f3373359c0f823312c09c87029fafef2dcad890 Mon Sep 17 00:00:00 2001 From: Daniel Silveira Date: Mon, 16 Mar 2026 10:49:03 -0300 Subject: [PATCH 1/3] added support to css and js files --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 5e277c1..a6b3f71 100644 --- a/index.php +++ b/index.php @@ -71,7 +71,7 @@ exit(); } -$allowedExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp']; +$allowedExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp', 'css', 'js']; if(!in_array(strtolower($sourceExt), $allowedExtensions) || !in_array(strtolower($targetExt), $allowedExtensions)) { debug("\t Extension not allowed: $sourceExt", $debugMode); From 0d462d036df6ebc045af1604fa8cff55c9c14174 Mon Sep 17 00:00:00 2001 From: Daniel Silveira Date: Mon, 16 Mar 2026 11:05:54 -0300 Subject: [PATCH 2/3] undo changes --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index a6b3f71..5e277c1 100644 --- a/index.php +++ b/index.php @@ -71,7 +71,7 @@ exit(); } -$allowedExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp', 'css', 'js']; +$allowedExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp']; if(!in_array(strtolower($sourceExt), $allowedExtensions) || !in_array(strtolower($targetExt), $allowedExtensions)) { debug("\t Extension not allowed: $sourceExt", $debugMode); From 90128952eb93f4ffff7341f07f64ab1eabcc989f Mon Sep 17 00:00:00 2001 From: Daniel Silveira Date: Mon, 16 Mar 2026 11:06:44 -0300 Subject: [PATCH 3/3] enable css and js --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 5e277c1..a6b3f71 100644 --- a/index.php +++ b/index.php @@ -71,7 +71,7 @@ exit(); } -$allowedExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp']; +$allowedExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp', 'css', 'js']; if(!in_array(strtolower($sourceExt), $allowedExtensions) || !in_array(strtolower($targetExt), $allowedExtensions)) { debug("\t Extension not allowed: $sourceExt", $debugMode);