Remove trailing . from urls.

This commit is contained in:
Retro_Guy 2024-11-11 06:20:10 -07:00
parent 11d1c4189d
commit 7dfa557ff2
1 changed files with 1 additions and 1 deletions

View File

@ -1189,7 +1189,7 @@ function display_links_in_body($text)
continue;
}
// Get rid of unwanted trailing characters
$match = rtrim(htmlspecialchars_decode($match), '/>,"');
$match = rtrim(htmlspecialchars_decode($match), '/>,".');
$match = htmlspecialchars($match);
$linkurl = preg_replace("/(<|>)/", '', htmlspecialchars_decode($match));
$url = preg_replace("/(<|>)/", ' ', $match);