Tweak to comment

This commit is contained in:
Matt Pass
2016-05-05 15:35:53 +01:00
parent d686faf8a7
commit 8a1fec4e18

View File

@@ -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);