From 3cd803ef31deb65f62401ba9e7ae7bd559fef8d3 Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:39:55 +0300 Subject: [PATCH] fix(TRichText): amend fab39bd changes --- Web/Models/Entities/Traits/TRichText.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Web/Models/Entities/Traits/TRichText.php b/Web/Models/Entities/Traits/TRichText.php index 75fbee5b..0ffa2363 100644 --- a/Web/Models/Entities/Traits/TRichText.php +++ b/Web/Models/Entities/Traits/TRichText.php @@ -42,7 +42,7 @@ trait TRichText $link = str_replace(";", ";", $link); $rel = $this->isAd() ? "sponsored" : "ugc"; - $server_domain = str_replace(':' . $_SERVER['SERVER_PORT'], '', $_SERVER['HTTP_HOST']); + /*$server_domain = str_replace(':' . $_SERVER['SERVER_PORT'], '', $_SERVER['HTTP_HOST']); if(str_contains($link, $server_domain)) { $replaced_link = str_replace(':' . $_SERVER['SERVER_PORT'], '', $link); $replaced_link = str_replace($server_domain, '', $replaced_link); @@ -50,7 +50,7 @@ trait TRichText return "$link" . htmlentities($matches[4]); } - $link = htmlentities(urldecode($link)); + $link = htmlentities(urldecode($link));*/ return "$link" . htmlentities($matches[4]); }),