mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
fix topic link
This commit is contained in:
parent
9578ffb234
commit
3185830fbe
|
@ -148,7 +148,7 @@ class TopicEntity_Topic extends Entity
|
|||
$this->extractExtra();
|
||||
if (isset($this->aExtra['url'])) {
|
||||
if ($bShort) {
|
||||
$sUrl=$this->aExtra['url'];
|
||||
$sUrl=htmlspecialchars($this->aExtra['url']);
|
||||
if (preg_match("/^http:\/\/(.*)$/i",$sUrl,$aMatch)) {
|
||||
$sUrl=$aMatch[1];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue