projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f760639
)
ConvertStyle.php
author
john
<john@roojs.com>
Wed, 20 Dec 2017 04:43:25 +0000
(12:43 +0800)
committer
john
<john@roojs.com>
Wed, 20 Dec 2017 04:43:25 +0000
(12:43 +0800)
ConvertStyle.php
patch
|
blob
|
history
diff --git
a/ConvertStyle.php
b/ConvertStyle.php
index
26a596d
..
4f52e10
100644
(file)
--- 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)
{