From 58090b0120ace6211c0cd4816ed859d38bd54a34 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Thu, 17 Jun 2021 07:06:01 +0000 Subject: [PATCH] Trim comma from url links --- 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 e0fd040..c435754 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -884,7 +884,7 @@ function html_parse($text) { for($i=0; $i<$n; $i++) { $word=$words[$i]; if(preg_match('/(https?|ftp|news|gopher|telnet)\:\/\/[^\",]+/i', $word)) { - $nlink = trim($word, '().'); + $nlink = trim($word, '().,'); $nlink = preg_replace('/(\<|\>|\ );/', '', $nlink); $nword = ''.$word.''; if($nword!=$word && substr($nlink, strlen($nlink) - 3) != "://") {