From c11338cf393fd2e77f0f19900e107d056a0a5fd8 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Fri, 5 Jan 2024 06:59:32 -0700 Subject: [PATCH] Recognize comma as part of urls when creating links in display. --- Rocksolid_Light/rocksolid/newsportal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php index 3509c46..43d6367 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -1016,7 +1016,7 @@ function html_parse($text) function display_links_in_body($text) { - preg_match_all('/(https?|ftp|scp|news|gopher|gemini|telnet):\/\/[a-zA-Z0-9.?%=\-\+\;\:\~\@\!\(\)\#&_\/]+/', $text, $matches); + preg_match_all('/(https?|ftp|scp|news|gopher|gemini|telnet):\/\/[a-zA-Z0-9.?%=\-\+\;\:\,\~\@\!\(\)\#&_\/]+/', $text, $matches); $found = array(); $isquote = false; if (strpos($text, ">") == 0) {