Recognize comma as part of urls when creating links in display.

This commit is contained in:
Retro_Guy 2024-01-05 06:59:32 -07:00
parent 45dcf42182
commit c11338cf39
1 changed files with 1 additions and 1 deletions

View File

@ -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) {