From 4910238a9f2b412d370a785564009ec91cb2e0af Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Sun, 21 Sep 2014 13:01:09 -0400 Subject: [PATCH] remove unneeded pack() --- min/lib/Minify/Source.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/min/lib/Minify/Source.php b/min/lib/Minify/Source.php index d94510f..9168d6e 100644 --- a/min/lib/Minify/Source.php +++ b/min/lib/Minify/Source.php @@ -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; }