Details
Description
If a Token is placed inside a hyperlink, parsing the hyperlink truncates the hyperlink at the last token substitution.
This appears to occur in the getDataFunc() function which does not append the leftover hyperlink after splitting it for insertion of the Token values.
This problem can be solved, I believe, with the insertion of the following at line 533 in the file: CRM/Mailing/BAO/Mailing.php
526 foreach ( $matches[1] as $match )
{ 527 $preg_token = '/'.preg_quote($match,'/').'/'; 528 $list = preg_split($preg_token,$token,2); EXISTING 529 $funcStruct['embed_parts'][] = $list[0]; 530 $token = $list[1]; 531 $funcStruct['token'][] = $this->getDataFunc($match); 532 }------------------------------------------------------------------------------------------------
533 if ($list[1])
------------------------------------------------------------------------------------------------
536 } else