1
0
Fork 0
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:
Mzhelskiy Maxim 2010-02-07 11:41:09 +00:00
parent 9578ffb234
commit 3185830fbe

View file

@ -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];
}