]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: not complete a url with parameter or fragment
authorMichael <heluecht@pirati.ca>
Tue, 31 Oct 2017 06:05:52 +0000 (06:05 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 31 Oct 2017 06:05:52 +0000 (06:05 +0000)
include/html2bbcode.php

index a95c08cd564470c1147a58aa360e07a10af8e596..257539b07481d9dc716a778dd2563c2a860afec8 100644 (file)
@@ -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];