From ec607526505f95c91bc521a64e85843df894aa64 Mon Sep 17 00:00:00 2001 From: triatic <42704418+triatic@users.noreply.github.com> Date: Sat, 15 Sep 2018 14:16:15 +0100 Subject: [PATCH] [FB2Bridge] Prevent Facebook link href's ending in two quotes (#831) Additionally prevent Facebook links having two forward slashes after the hostname. --- bridges/FB2Bridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/FB2Bridge.php b/bridges/FB2Bridge.php index aeefad91..10a66b63 100644 --- a/bridges/FB2Bridge.php +++ b/bridges/FB2Bridge.php @@ -22,7 +22,7 @@ class FB2Bridge extends BridgeAbstract { if(is_array($matches) && count($matches) > 1) { $link = $matches[1]; if(strpos($link, '/') === 0) - $link = self::URI . $link . '"'; + $link = self::URI . substr($link, 1); if(strpos($link, 'facebook.com/l.php?u=') !== false) $link = urldecode(extractFromDelimiters($link, 'facebook.com/l.php?u=', '&')); return ' href="' . $link . '"';