Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Jan 11, 2020
1 parent 5a64da4 commit 8698477
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions objects/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8698477

Please sign in to comment.