Ignore:
Timestamp:
Aug 29, 2012, 6:00:39 PM (12 years ago)
Author:
mistic100
Message:

consolidate upgrade process, cURL compliant with safe_mode

Location:
extensions/gvideo/include
Files:
1 added
1 edited

Legend:

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

    r17488 r17661  
    239239      curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept-language: en"));
    240240      curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');
    241       curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    242       curl_setopt($ch, CURLOPT_MAXREDIRS, 1);
     241      if (!ini_get('safe_mode'))
     242      {
     243        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
     244        curl_setopt($ch, CURLOPT_MAXREDIRS, 1);
     245      }
    243246      if (strpos($src, 'https://') !== false)
    244247      {
Note: See TracChangeset for help on using the changeset viewer.