Plugin Directory

Changeset 218366


Ignore:
Timestamp:
03/16/2010 03:11:45 PM (16 years ago)
Author:
starhai
Message:

修正 CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir

Location:
wp2hibaidu
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp2hibaidu/tags/1.0.0/wp2hibaidu.php

    r214930 r218366  
    5050        curl_setopt($ch, CURLOPT_TIMEOUT, 10);
    5151        curl_setopt($ch, CURLOPT_HEADER, 1);
    52         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
     52       // curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
    5353        curl_setopt($ch, CURLOPT_COOKIEJAR, $this->cookie);
    5454        curl_setopt($ch, CURLOPT_COOKIEFILE, $this->cookie);
  • wp2hibaidu/tags/1.0.1/wp2hibaidu.php

    r214942 r218366  
    5050        curl_setopt($ch, CURLOPT_TIMEOUT, 10);
    5151        curl_setopt($ch, CURLOPT_HEADER, 1);
    52         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
     52       // curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
    5353        curl_setopt($ch, CURLOPT_COOKIEJAR, $this->cookie);
    5454        curl_setopt($ch, CURLOPT_COOKIEFILE, $this->cookie);
  • wp2hibaidu/trunk/wp2hibaidu.php

    r214942 r218366  
    5050        curl_setopt($ch, CURLOPT_TIMEOUT, 10);
    5151        curl_setopt($ch, CURLOPT_HEADER, 1);
    52         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
     52        //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
    5353        curl_setopt($ch, CURLOPT_COOKIEJAR, $this->cookie);
    5454        curl_setopt($ch, CURLOPT_COOKIEFILE, $this->cookie);
Note: See TracChangeset for help on using the changeset viewer.