From: Michael Date: Tue, 31 Oct 2017 06:05:52 +0000 (+0000) Subject: Bugfix: not complete a url with parameter or fragment X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9804e65d186b70092e3ac78386bde0e6864992a2;p=friendica.git Bugfix: not complete a url with parameter or fragment --- diff --git a/include/html2bbcode.php b/include/html2bbcode.php index a95c08cd56..257539b074 100644 --- a/include/html2bbcode.php +++ b/include/html2bbcode.php @@ -340,6 +340,8 @@ function html2bbcode($message, $basepath = '') */ function addHostnameSub($matches, $basepath) { $base = parse_url($basepath); + unset($base['query']); + unset($base['fragment']); $link = $matches[0]; $url = $matches[1];