Pārlūkot izejas kodu

采集修复

tags/6.2.0
tianya pirms 2 gadiem
vecāks
revīzija
e75c195c68
2 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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") {


Notiek ielāde…
Atcelt
Saglabāt