From 9f93656bf4adbb8e41121f5da3357716d24fa907 Mon Sep 17 00:00:00 2001 From: GregThib Date: Fri, 7 Aug 2015 16:30:42 +0200 Subject: [PATCH] Anti-hotlinking was apparently disabled It seems that anti-hotlinking method (data-src + JS) was disabled on Rue89 site. Because I'm not sure that modification is permanent, I put an "if" for testing it before replacement. --> tested ok on my rssbridge instance. IMG are back. --- bridges/Rue89Bridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridges/Rue89Bridge.php b/bridges/Rue89Bridge.php index 1938c19..0fe0033 100644 --- a/bridges/Rue89Bridge.php +++ b/bridges/Rue89Bridge.php @@ -21,7 +21,8 @@ class Rue89Bridge extends BridgeAbstract{ //$text = $html2->find('div[class=text]', 0)->innertext; foreach($html2->find('img') as $image) { - $image->src = $image->getAttribute('data-src'); + $src = $image->getAttribute('data-src'); + if($src) $image->src = $src; } $text = $html2->find('div.content', 0)->innertext;