From 9804e65d186b70092e3ac78386bde0e6864992a2 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 31 Oct 2017 06:05:52 +0000 Subject: [PATCH] Bugfix: not complete a url with parameter or fragment --- include/html2bbcode.php | 2 ++ 1 file changed, 2 insertions(+) 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];