summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-03-12 12:59:56 +0000
committeralecpl <alec@alec.pl>2010-03-12 12:59:56 +0000
commit1baeb660eb32496b06473f962386c1874e359d9d (patch)
tree8df27fa51edb8afca77279f9aa502649ed0ae453 /program/steps/mail
parent5027c326e9bf2c4c6ad8ab2aed3673ae83bd2b2c (diff)
- Improved check_email()
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 3f2ac0289..32b522c5c 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1197,7 +1197,7 @@ function rcmail_address_string($input, $max=null, $linked=false, $addicon=null)
if ($PRINT_MODE) {
$out .= sprintf('%s &lt;%s&gt;', Q($part['name']), $part['mailto']);
}
- else if (preg_match("/$EMAIL_ADDRESS_PATTERN/i", $part['mailto'])) {
+ else if (check_email($part['mailto'], false)) {
if ($linked) {
$out .= html::a(array(
'href' => 'mailto:'.$part['mailto'],