From 23dda4fdc0ec7ad07d2ee794dd4efe86607e552b Mon Sep 17 00:00:00 2001 From: Joris Date: Wed, 11 Mar 2015 16:05:27 +0100 Subject: [PATCH] Updated getPatterns regex to add extra URL chars We noticed that some URL's didn't get parsed, so we added these extra characters to the regex, to get those recognized properly too. --- CRM/Mailing/BAO/Mailing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 94e7f7f40a..e0b42420cb 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -631,7 +631,7 @@ ORDER BY i.contact_id, i.{$tempColumn} $protos = '(https?|ftp)'; $letters = '\w'; - $gunk = '\{\}/#~:.?+=&;%@!\,\-'; + $gunk = '\{\}/#~:.?+=&;%@!\,\-\|\(\)\*'; $punc = '.:?\-'; $any = "{$letters}{$gunk}{$punc}"; if ($onlyHrefs) { -- 2.25.1