summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-20 12:15:06 +0400
committerAndrew Dolgov <[email protected]>2013-03-20 12:15:06 +0400
commit81153e6b8bdf3761ebe805ae9622a305d001a786 (patch)
tree1c53f46cd3ece30c8c95a2c794df6330abb3b9dc /include
parent54bc5594ab26ae961bb92c113a1d2815044e450f (diff)
fix broken redirects
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 62699e175..a055d1edf 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -295,7 +295,7 @@
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout ? $timeout : 15);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout ? $timeout : 45);
- //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, !ini_get("safe_mode"));
curl_setopt($ch, CURLOPT_MAXREDIRS, 20);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);