diff --git a/bridges/AnimeUltimeBridge.php b/bridges/AnimeUltimeBridge.php
index 8289165..c84ae09 100644
--- a/bridges/AnimeUltimeBridge.php
+++ b/bridges/AnimeUltimeBridge.php
@@ -74,7 +74,7 @@ class AnimeUltimeBridge extends BridgeAbstract {
if (!empty($item_uri)) {
//Retrieve description from description page and convert relative image src info absolute image src
- $html_item = file_get_contents($item_uri) or $this->returnServerError('Could not request Anime-Ultime: '.$item_uri);
+ $html_item = $this->getContents($item_uri) or $this->returnServerError('Could not request Anime-Ultime: '.$item_uri);
$item_description = substr($html_item, strpos($html_item, 'class="principal_contain" align="center">') + 41);
$item_description = substr($item_description, 0, strpos($item_description, '
'));
$item_description = str_replace('src="images', 'src="'.$website.'images', $item_description);
diff --git a/bridges/Arte7Bridge.php b/bridges/Arte7Bridge.php
index 35df0a2..70c04e4 100644
--- a/bridges/Arte7Bridge.php
+++ b/bridges/Arte7Bridge.php
@@ -51,7 +51,7 @@ class Arte7Bridge extends BridgeAbstract{
function extractVideoset($category='toutes-les-videos', $lang='fr')
{
$url = 'http://www.arte.tv/guide/'.$lang.'/plus7/'.$category;
- $input = file_get_contents($url) or die('Could not request ARTE.');
+ $input = $this->getContents($url) or die('Could not request ARTE.');
if(strpos($input, 'categoryVideoSet') !== FALSE)
{
$input = explode('categoryVideoSet: ', $input);
diff --git a/bridges/FacebookBridge.php b/bridges/FacebookBridge.php
index c04ca9d..efa49f0 100644
--- a/bridges/FacebookBridge.php
+++ b/bridges/FacebookBridge.php
@@ -93,7 +93,7 @@ class FacebookBridge extends BridgeAbstract{
),
);
$context = stream_context_create($http_options);
- $html = file_get_contents($captcha_action, false, $context);
+ $html = $this->getContents($captcha_action, false, $context);
if ($html === FALSE) { $this->returnServerError('Failed to submit captcha response back to Facebook'); }
unset($_SESSION['captcha_fields']);
$html = str_get_html($html);
@@ -129,7 +129,7 @@ class FacebookBridge extends BridgeAbstract{
$_SESSION['captcha_action'] = 'https://www.facebook.com'.$captcha->find('form', 0)->action;
//Show captcha filling form to the viewer, proxying the captcha image
- $img = base64_encode(file_get_contents($captcha->find('img', 0)->src));
+ $img = base64_encode($this->getContents($captcha->find('img', 0)->src));
header('HTTP/1.1 500 '.Http::getMessageForCode(500));
header('Content-Type: text/html');
die('