Updated getPatterns regex to add extra URL chars
authorJoris <ShiveringSquirrel@users.noreply.github.com>
Wed, 11 Mar 2015 15:05:27 +0000 (16:05 +0100)
committerJoris <ShiveringSquirrel@users.noreply.github.com>
Wed, 11 Mar 2015 15:05:27 +0000 (16:05 +0100)
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

index 94e7f7f40a09f0009d11d25e383d70608a695f5e..e0b42420cb6369df7f808e45c195b7b3b4f0e209 100644 (file)
@@ -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) {