Merge pull request #3844 from annando/no-fragment

Bugfix: not complete a url with parameter or fragment
This commit is contained in:
Tobias Diekershoff
2017-10-31 08:08:18 +01:00
committed by GitHub

View File

@@ -340,6 +340,8 @@ function html2bbcode($message, $basepath = '')
*/ */
function addHostnameSub($matches, $basepath) { function addHostnameSub($matches, $basepath) {
$base = parse_url($basepath); $base = parse_url($basepath);
unset($base['query']);
unset($base['fragment']);
$link = $matches[0]; $link = $matches[0];
$url = $matches[1]; $url = $matches[1];