From 189f55eae967d88cdb4158b3287f0d0b3ab91dc7 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Thu, 31 Mar 2022 06:15:45 -0500 Subject: [PATCH] --- bbs.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bbs.php b/bbs.php index 8734fca..e724ffd 100644 --- a/bbs.php +++ b/bbs.php @@ -137,7 +137,8 @@ } $comment = $row['comment']; - $comment = preg_replace('/^>[^>].*/m', "$0", $comment); + $comment = preg_replace('/^>[^>].*/m', '$0', $comment); + $comment = preg_replace('/https?:\/\/[^\s]+/m', '$0', $comment); $comment = preg_replace_callback('/>>\s*(\d+)/', quote_link, $comment); $comment = str_replace("\n", "
", $comment); echo "

$comment

";