Merge pull request #3844 from annando/no-fragment

Bugfix: not complete a url with parameter or fragment
2022.09-rc
Tobias Diekershoff 2017-10-31 08:08:18 +01:00 zatwierdzone przez GitHub
commit 078690e91c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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];