ConvertStyle.php
authorjohn <john@roojs.com>
Wed, 20 Dec 2017 04:43:25 +0000 (12:43 +0800)
committerjohn <john@roojs.com>
Wed, 20 Dec 2017 04:43:25 +0000 (12:43 +0800)
ConvertStyle.php

index 26a596d..4f52e10 100644 (file)
@@ -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)
         {