Browse Source

disable imagecreatefromstring output on validation request

main
ghost 3 years ago
parent
commit
5422104b46
  1. 2
      src/system/helper/valid.php

2
src/system/helper/valid.php

@ -39,7 +39,7 @@ class Valid { @@ -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;

Loading…
Cancel
Save