Use premade var rather than spec in another way

This commit is contained in:
Matt Pass
2016-05-05 16:01:53 +01:00
parent 191990ffdb
commit 67e28106f9

View File

@@ -147,7 +147,7 @@ function toUTF8noBOM($string,$message) {
}
}
// Remove any other BOMs from view
$string = preg_replace('/\x{EF}\x{BB}\x{BF}/','',$string);
$string = preg_replace('/'.$bom.'/','',$string);
// Test for any bad characters
$teststring = $string;