From: Edward Date: Tue, 8 Jul 2014 05:30:14 +0000 (+0800) Subject: ConvertStyle.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=d12bb738ba1e03fe4253af79660c48e06a9b54a3 ConvertStyle.php --- diff --git a/ConvertStyle.php b/ConvertStyle.php index c0062b73..4179c512 100644 --- a/ConvertStyle.php +++ b/ConvertStyle.php @@ -90,8 +90,9 @@ class Pman_Core_ConvertStyle extends Pman $data = file_get_contents($file); } - if(preg_match('/^/', $subject)) - return $data; + if(preg_match('/^\s\s/', $data)){ + return $data; + } libxml_use_internal_errors (true); $doc = new DOMDocument('1.0', 'UTF-8');