mirror of
https://github.com/openvk/openvk
synced 2025-01-10 01:40:06 +03:00
fix(TRichText): amend fab39bd
changes
This commit is contained in:
parent
f66dd0c7bd
commit
3cd803ef31
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ trait TRichText
|
||||||
$link = str_replace(";", ";", $link);
|
$link = str_replace(";", ";", $link);
|
||||||
$rel = $this->isAd() ? "sponsored" : "ugc";
|
$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)) {
|
if(str_contains($link, $server_domain)) {
|
||||||
$replaced_link = str_replace(':' . $_SERVER['SERVER_PORT'], '', $link);
|
$replaced_link = str_replace(':' . $_SERVER['SERVER_PORT'], '', $link);
|
||||||
$replaced_link = str_replace($server_domain, '', $replaced_link);
|
$replaced_link = str_replace($server_domain, '', $replaced_link);
|
||||||
|
@ -50,7 +50,7 @@ trait TRichText
|
||||||
return "<a href='$replaced_link' rel='$rel'>$link</a>" . htmlentities($matches[4]);
|
return "<a href='$replaced_link' rel='$rel'>$link</a>" . htmlentities($matches[4]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$link = htmlentities(urldecode($link));
|
$link = htmlentities(urldecode($link));*/
|
||||||
|
|
||||||
return "<a href='/away.php?to=$href' rel='$rel' target='_blank'>$link</a>" . htmlentities($matches[4]);
|
return "<a href='/away.php?to=$href' rel='$rel' target='_blank'>$link</a>" . htmlentities($matches[4]);
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue