X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=ConvertStyle.php;h=4f52e1016cee579761774899efbaa04e21ed42c7;hp=f820da74c865598b8009f31db925056e8b7bf5cf;hb=443623f47935eb52acd65a3ff0d84eab1fd5a98b;hpb=bda3ca93291415647982d6e806e62eb940b91498 diff --git a/ConvertStyle.php b/ConvertStyle.php index f820da74..4f52e101 100644 --- a/ConvertStyle.php +++ b/ConvertStyle.php @@ -52,10 +52,10 @@ class Pman_Core_ConvertStyle extends Pman function checkHeader($url) { - if(strpos($url, 'https') !== false) - { - $this->jerr('accept HTTP url only!'); - } + // if(strpos($url, 'https') !== false) + // { + // $this->jerr('accept HTTP url only!'); + // } $headers = get_headers($url, 1); if(strpos(is_array($headers['Content-Type']) ? $headers['Content-Type'][0] : $headers['Content-Type'], 'text/html') === false) { @@ -92,8 +92,7 @@ class Pman_Core_ConvertStyle extends Pman $data = file_get_contents($file); } - if(preg_match('/^\s/', $data)){ - return 'got'; + if(preg_match('/^\s*\s*/', $data)){ $inLineCss = false; }