Plugin Directory

Changeset 217505


Ignore:
Timestamp:
03/14/2010 03:38:56 PM (16 years ago)
Author:
starhai
Message:

修正在某些主机安全问题,产生以下错误提示的问题
CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set

Location:
wp2sinablog
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp2sinablog/tags/1.0.3/wp2sinablog.php

    r208523 r217505  
    107107        curl_setopt($ch, CURLOPT_COOKIEFILE, $this->cookie);
    108108        curl_setopt($ch, CURLOPT_HEADER, 1);
    109         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
     109        //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
    110110        curl_setopt($ch, CURLOPT_COOKIEJAR,  $this->cookie);
    111111        curl_exec($ch);
  • wp2sinablog/trunk/wp2sinablog.php

    r208523 r217505  
    107107        curl_setopt($ch, CURLOPT_COOKIEFILE, $this->cookie);
    108108        curl_setopt($ch, CURLOPT_HEADER, 1);
    109         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
     109        //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
    110110        curl_setopt($ch, CURLOPT_COOKIEJAR,  $this->cookie);
    111111        curl_exec($ch);
Note: See TracChangeset for help on using the changeset viewer.