Skip to content

Commit 6612437

Browse files
pjmatosMichael Babker
authored and
Michael Babker
committed
Email cloak broken when link parameters are not parsed (Fix #4354)
1 parent 34c33dc commit 6612437

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/content/emailcloak/emailcloak.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ public function onContentPrepare($context, &$row, &$params, $page = 0)
5454
*/
5555
protected function _getPattern ($link, $text)
5656
{
57-
$pattern = '~(?:<a ([\w "\'=\@\.\-:;]*)href\s*=\s*"mailto:'
58-
. $link . '"([\w "\'=\@\.\-:;]*))>' . $text . '</a>~i';
57+
$pattern = '~(?:<a ([^>]*)href\s*=\s*"mailto:' . $link . '"([^>]*))>' . $text . '</a>~i';
5958

6059
return $pattern;
6160
}

0 commit comments

Comments
 (0)