1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-16 11:03:59 +02:00

remove unneeded pack()

This commit is contained in:
Steve Clay
2014-09-21 13:01:09 -04:00
parent 7ff9438362
commit 4910238a9f

View File

@@ -126,7 +126,7 @@ class Minify_Source implements Minify_SourceInterface {
: call_user_func($this->_getContentFunc, $this->_id)
);
// remove UTF-8 BOM if present
return (pack("CCC",0xef,0xbb,0xbf) === substr($content, 0, 3))
return ("\xEF\xBB\xBF" === substr($content, 0, 3))
? substr($content, 3)
: $content;
}