diff --git a/objects/functions.php b/objects/functions.php index cf7de7a7c..6248e8dff 100644 --- a/objects/functions.php +++ b/objects/functions.php @@ -746,6 +746,9 @@ function xss_esc_back($text) { } function remove_utf8_bom($text){ + if(strlen($text)>1000000){ + return $text; + } $bom = pack('H*','EFBBBF'); $text = preg_replace("/^$bom/", '', $text); return $text;