allow http links
This commit is contained in:
parent
e62cca0e52
commit
1aeaffde97
|
@ -97,12 +97,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$links = array();
|
$links = array();
|
||||||
if (preg_match_all('/https:(.*)\b/', $content, $links, PREG_SET_ORDER))
|
if (preg_match_all('/(https?:.*)\b/', $content, $links, PREG_SET_ORDER))
|
||||||
{
|
{
|
||||||
foreach($links as $link)
|
foreach($links as $link)
|
||||||
{
|
{
|
||||||
$divcontent .= '<div>
|
$divcontent .= '<div>
|
||||||
<a target="_blank" href="https:' . $link[1] . '">https:' . $link[1] . '</a>
|
<a target="_blank" href="' . $link[1] . '">' . $link[1] . '</a>
|
||||||
</div>';
|
</div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue