summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-03 13:43:09 +0400
committerAndrew Dolgov <[email protected]>2013-04-03 13:43:09 +0400
commit6470aaec68ef3dff6aa990d496f5eae8b779dd0a (patch)
treed66183b9797295678f02c1e6aca17763d0b6cbbd /include
parent4d8500570c599af79f4abc3099b4b2eb5419ce9b (diff)
add NO_CURL; disable native gzdecoding for file_get_contents() experimentally
Diffstat (limited to 'include')
-rw-r--r--include/functions.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/functions.php b/include/functions.php
index d77cb199e..aa1f0808b 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -318,7 +318,7 @@
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));
@@ -397,9 +397,6 @@
$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"];