Browse Source

采集修复

tags/6.2.0
tianya 2 years ago
parent
commit
e75c195c68
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      src/admin/inc/inc_archives_functions.php
  2. +1
    -1
      src/system/libraries/dedehttpdown.class.php

+ 2
- 1
src/admin/inc/inc_archives_functions.php View File

@@ -120,7 +120,8 @@ function GetCurContent($body)
if (!preg_match("#^(http|https):\/\/#i", $value)) {
continue;
}
$htd->OpenUrl($value);
$v = str_replace('&','&',$value);
$htd->OpenUrl($v);
$itype = $htd->GetHead("content-type");
$isImage = true;
if ($itype == 'image/gif') {


+ 1
- 1
src/system/libraries/dedehttpdown.class.php View File

@@ -324,7 +324,7 @@ class DedeHttpDown
}
if (function_exists('curl_init') && function_exists('curl_exec')) {
$this->m_ch = curl_init();
curl_setopt($this->m_ch, CURLOPT_URL, $this->m_scheme.'://'.$this->m_host.':'.$this->m_port.$this->m_path.'?'.$this->m_query);
curl_setopt($this->m_ch, CURLOPT_URL, $this->m_url);
curl_setopt($this->m_ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($this->m_ch, CURLOPT_FOLLOWLOCATION, 1);
if ($requestType == "POST") {


Loading…
Cancel
Save