diff --git a/lib/settings-common.php b/lib/settings-common.php index 7f401e5..1946978 100644 --- a/lib/settings-common.php +++ b/lib/settings-common.php @@ -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;