From 1aeaffde977d83d76c77c99930e12c554f79cc92 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Tue, 1 Oct 2024 09:03:59 +0200 Subject: [PATCH] allow http links --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 0ffa284..3ab71dd 100644 --- a/index.php +++ b/index.php @@ -97,12 +97,12 @@ } } $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) { $divcontent .= '
- https:' . $link[1] . ' + ' . $link[1] . '
'; } }