summaryrefslogtreecommitdiff
path: root/plugins/af_readability
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-11-19 20:05:17 +0300
committerAndrew Dolgov <[email protected]>2015-11-19 20:05:17 +0300
commit4c46702672631c0cf84067d6f2c55b3bfda1db6f (patch)
treec9e69577fab4ce761043d696e289261afb632452 /plugins/af_readability
parent6497fb65b439f02cf145c2d0eb4e40803641fbb4 (diff)
drop support for (obsolete, removed from recent php versions) php safe_mode setting
remove ugly hacks for curl + open_basedir combination breaking support for http redirects
Diffstat (limited to 'plugins/af_readability')
-rwxr-xr-x[-rw-r--r--]plugins/af_readability/init.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php
index cfdcb69d3..6216d510a 100644..100755
--- a/plugins/af_readability/init.php
+++ b/plugins/af_readability/init.php
@@ -106,8 +106,7 @@ class Af_Readability extends Plugin {
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION,
- !ini_get("safe_mode") && !ini_get("open_basedir"));
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, !ini_get("open_basedir"));
curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
@$result = curl_exec($ch);