mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
Adding fix for #1908
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4379 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
96f8227255
commit
1aef0e1f72
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ class TextHelper extends AppHelper {
|
|||
}
|
||||
$options .= ')';
|
||||
|
||||
return preg_replace_callback('#([_A-Za-z0-9+-+]+(?:\.[_A-Za-z0-9+-]+)*@[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)*)#',
|
||||
return preg_replace_callback('#([_A-Za-z0-9+-]+(?:\.[_A-Za-z0-9+-]+)*@[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)*)#',
|
||||
create_function('$matches', '$Html = new HtmlHelper(); $Html->tags = $Html->loadConfig(); return $Html->link($matches[0], "mailto:" . $matches[0],' . $options . ');'), $text);
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue