Skip to content

Commit 2b3469f

Browse files
author
Michael Babker
committed
Merge pull request #4356 from pjmatos/patch-3
Email cloak broken when link parameters are not parsed (backport #4354)
2 parents 84a2b7b + 1f174af commit 2b3469f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/content/emailcloak/emailcloak.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ public function onContentPrepare($context, &$row, &$params, $page = 0)
4545
* @return string A regular expression that matches a link containing the parameters.
4646
*/
4747
protected function _getPattern ($link, $text) {
48-
$pattern = '~(?:<a ([\w "\'=\@\.\-:;]*)href\s*=\s*"mailto:'
49-
. $link . '"([\w "\'=\@\.\-:;]*))>' . $text . '</a>~i';
48+
$pattern = '~(?:<a ([^>]*)href\s*=\s*"mailto:' . $link . '"([^>]*))>' . $text . '</a>~i';
5049
return $pattern;
5150
}
5251

0 commit comments

Comments
 (0)