summaryrefslogtreecommitdiff
path: root/plugins/af_unburn/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/af_unburn/init.php')
-rw-r--r--plugins/af_unburn/init.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/af_unburn/init.php b/plugins/af_unburn/init.php
index a97502b12..5c9bc1387 100644
--- a/plugins/af_unburn/init.php
+++ b/plugins/af_unburn/init.php
@@ -24,8 +24,6 @@ class Af_Unburn extends Plugin {
strpos($article["link"], "/~r/") !== FALSE ||
strpos($article["link"], "feedsportal.com") !== FALSE)) {
- if (strpos($article["plugin_data"], "unburn,$owner_uid:") === FALSE) {
-
if (ini_get("safe_mode") || ini_get("open_basedir")) {
$ch = curl_init(geturl($article["link"]));
} else {
@@ -38,7 +36,11 @@ class Af_Unburn extends Plugin {
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, !ini_get("safe_mode") && !ini_get("open_basedir"));
curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
- $contents = @curl_exec($ch);
+ if (defined('_CURL_HTTP_PROXY')) {
+ curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);
+ }
+
+ @curl_exec($ch);
$real_url = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
@@ -69,9 +71,6 @@ class Af_Unburn extends Plugin {
$article["plugin_data"] = "unburn,$owner_uid:" . $article["plugin_data"];
$article["link"] = $real_url;
}
- } else if (isset($article["stored"]["link"])) {
- $article["link"] = $article["stored"]["link"];
- }
}
return $article;