allow http links

This commit is contained in:
quenousimporte 2024-10-01 09:03:59 +02:00
parent e62cca0e52
commit 1aeaffde97
1 changed files with 2 additions and 2 deletions

View File

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