From: Joris Date: Wed, 11 Mar 2015 15:05:27 +0000 (+0100) Subject: Updated getPatterns regex to add extra URL chars X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=23dda4fdc0ec7ad07d2ee794dd4efe86607e552b;p=civicrm-core.git 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. --- 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) {