Fix ';' error in posts

This commit is contained in:
celestora 2023-02-25 18:07:29 +02:00 committed by GitHub
parent 185c007b50
commit 56fe715bce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ trait TRichText
$href = str_replace("#", "#", $matches[1]);
$href = rawurlencode(str_replace(";", "&#59;", $matches[1]));
$link = str_replace("#", "#", $matches[3]);
$link = str_replace(";", "&#59;", $matches[3]);
$link = str_replace(";", "&#59;", $link);
$rel = $this->isAd() ? "sponsored" : "ugc";
return "<a href='/away.php?to=$href' rel='$rel' target='_blank'>$link</a>" . htmlentities($matches[4]);