From d12bb738ba1e03fe4253af79660c48e06a9b54a3 Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 8 Jul 2014 13:30:14 +0800 Subject: [PATCH] ConvertStyle.php --- ConvertStyle.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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'); -- 2.39.2