From 67e28106f9febc6ff482814bb25bfd084e176b5a Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 5 May 2016 16:01:53 +0100 Subject: [PATCH] Use premade var rather than spec in another way --- lib/settings-common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;