From 7561c0685db761b4530f1237b7c83b203908a0d7 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 15 Oct 2018 19:53:41 +0200 Subject: [PATCH] [FacebookBridge] Fix 'SpSonSsoSredS' text in title The function 'defaultLinkTo' applied to the source HTML does break regex matches later in the bridge. We need to apply the function right before adding the contents to the item for the bridge to work properly. References #856 --- bridges/FacebookBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/FacebookBridge.php b/bridges/FacebookBridge.php index e44e3caa..1b8111ec 100644 --- a/bridges/FacebookBridge.php +++ b/bridges/FacebookBridge.php @@ -506,8 +506,6 @@ EOD; returnServerError('You must be logged in to view this page. This is not supported by RSS-Bridge.'); } - $html = defaultLinkTo($html, self::URI); - $element = $html ->find('#pagelet_timeline_main_column')[0] ->children(0) @@ -633,6 +631,8 @@ EOD; $uri = substr($uri, 0, strpos($uri, '?')); } + $content = defaultLinkTo($content, self::URI); + //Build and add final item $item['uri'] = htmlspecialchars_decode($uri); $item['content'] = htmlspecialchars_decode($content);