X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=ConvertStyle.php;h=4f52e1016cee579761774899efbaa04e21ed42c7;hp=4b98cb9da2ea96ee8d5d9649d7e708ba29441c65;hb=a1a3ecba68d2fedabc8203e88b40759401d7472d;hpb=a70ef67221022fa2e9f7943414847d5aa815f65c diff --git a/ConvertStyle.php b/ConvertStyle.php index 4b98cb9d..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,7 +92,7 @@ class Pman_Core_ConvertStyle extends Pman $data = file_get_contents($file); } - if(preg_match('/^\s*/', $data)){ $inLineCss = false; }