From 5422104b4603b6e23fffaeb9aa6d84ae169ff3a4 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 4 Jan 2022 00:40:08 +0200 Subject: [PATCH] disable imagecreatefromstring output on validation request --- src/system/helper/valid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/helper/valid.php b/src/system/helper/valid.php index e7ad6d7..fa96b19 100644 --- a/src/system/helper/valid.php +++ b/src/system/helper/valid.php @@ -39,7 +39,7 @@ class Valid { 'data:image/webp;base64,', ], '', $string); - if (self::base64($string) && imagecreatefromstring(base64_decode($string))) { + if (self::base64($string) && @imagecreatefromstring(base64_decode($string))) { return true;