From 8a1fec4e18dc5d4589807270f3d8fe8c7c25b69d Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 5 May 2016 15:35:53 +0100 Subject: [PATCH] Tweak to comment --- lib/settings-common.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/settings-common.php b/lib/settings-common.php index ce08e3b..a3e0140 100644 --- a/lib/settings-common.php +++ b/lib/settings-common.php @@ -137,6 +137,7 @@ function toUTF8noBOM($string,$message) { $bom = pack("CCC", 0xef, 0xbb, 0xbf); // If there's a BOM in the first few chars if (0 === strncmp($string, $bom, 3)) { + // If there's a BOM followed by a Windows based (2 char) line ending // chop BOM off and prefix returned string with a PHP_EOL if (0 === strncmp($string, $bom."\r\n", 5)) { $string = PHP_EOL.substr($string, 3);