]> git.wh0rd.org Git - tt-rss.git/commitdiff
add NO_CURL; disable native gzdecoding for file_get_contents() experimentally
authorAndrew Dolgov <fox@fakecake.org>
Wed, 3 Apr 2013 09:43:09 +0000 (13:43 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Wed, 3 Apr 2013 09:43:09 +0000 (13:43 +0400)
include/functions.php

index d77cb199e309d60b8bdf2c77bd8631548f04195d..aa1f0808bab12648e1de50c2836583b0cec49963 100644 (file)
                global $fetch_last_error;
                global $fetch_last_error_code;
 
-               if (function_exists('curl_init') && !ini_get("open_basedir")) {
+               if (!defined('NO_CURL') && !function_exists('curl_init') && !ini_get("open_basedir")) {
 
                        if (ini_get("safe_mode")) {
                                $ch = curl_init(geturl($url));
 
                        $data = @file_get_contents($url);
 
-                       @$gzdecoded = gzdecode($data);
-                       if ($gzdecoded) $data = $gzdecoded;
-
                        if (!$data && function_exists('error_get_last')) {
                                $error = error_get_last();
                                $fetch_last_error = $error["message"];