Преглед на файлове

采集修复

tags/6.2.0
tianya преди 2 години
родител
ревизия
e75c195c68
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  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 Целия файл

@@ -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 Целия файл

@@ -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…
Отказ
Запис