From ae59b20c0cf4c65ab77a4898702ef7927be07015 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 19 Jun 2017 00:19:52 +0200 Subject: [PATCH] [TwitterBridge] Fix double slashes in URI This fixes double slashes in the feed URI (https://twitter.com//... instead of https://twitter.com/...) Reported via #538 --- bridges/TwitterBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/TwitterBridge.php b/bridges/TwitterBridge.php index b485f084..1c9656ef 100644 --- a/bridges/TwitterBridge.php +++ b/bridges/TwitterBridge.php @@ -117,7 +117,7 @@ class TwitterBridge extends BridgeAbstract { // get TweetID $item['id'] = $tweet->getAttribute('data-tweet-id'); // get tweet link - $item['uri'] = self::URI . $tweet->find('a.js-permalink', 0)->getAttribute('href'); + $item['uri'] = self::URI . substr($tweet->find('a.js-permalink', 0)->getAttribute('href'), 1); // extract tweet timestamp $item['timestamp'] = $tweet->find('span.js-short-timestamp', 0)->getAttribute('data-time'); // generate the title