Skip to content

Commit 8698477

Browse files
danieldaniel
daniel
authored and
daniel
committed
1 parent 5a64da4 commit 8698477

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

objects/functions.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,9 @@ function xss_esc_back($text) {
746746
}
747747

748748
function remove_utf8_bom($text){
749+
if(strlen($text)>1000000){
750+
return $text;
751+
}
749752
$bom = pack('H*','EFBBBF');
750753
$text = preg_replace("/^$bom/", '', $text);
751754
return $text;

0 commit comments

Comments
 (0)