From d1cb531b0fc3eed32cdafed5aa0ac034cf7c1270 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Wed, 6 Apr 2022 01:19:25 -0500 Subject: [PATCH] --- bbs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbs.php b/bbs.php index ffb8716..15b4a88 100644 --- a/bbs.php +++ b/bbs.php @@ -174,7 +174,7 @@ if(!empty($row['comment'])) { $comment = $row['comment']; $comment = preg_replace('/^>(?!>\d).+/m', '$0', $comment); - $comment = preg_replace('/(https?|mailto|tel|ftp):[^\s]+/m', '$0', $comment); + $comment = preg_replace('/(?:https?|mailto|tel|ftp):[^\s]+/m', '$0', $comment); $comment = preg_replace_callback('/>>\s*(\d+)/', quote_link, $comment); $comment = str_replace("\n", "
", $comment); echo "

$comment

";