Ignore:
Timestamp:
Mar 6, 2013, 5:45:15 PM (11 years ago)
Author:
mistic100
Message:

safe_mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/flickr2piwigo/include/functions.inc.php

    r17476 r21288  
    4646      curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept-language: en"));
    4747      curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');
    48       curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    49       curl_setopt($ch, CURLOPT_MAXREDIRS, 1);
    5048      curl_setopt($ch, CURLOPT_TIMEOUT, 30);
     49      if (!ini_get('safe_mode'))
     50      {
     51        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
     52        curl_setopt($ch, CURLOPT_MAXREDIRS, 1);
     53      }
    5154      if (strpos($src, 'https://') !== false)
    5255      {
Note: See TracChangeset for help on using the changeset viewer.