summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-03-12 12:59:56 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-03-12 12:59:56 +0000
commit57a12a18ecb8c273480ebf50533730e52649af7e (patch)
treeb0ea18ae14a91066ad04926b17b76b95f374639a /roundcubemail/program/steps
parentb073e5166805deb04bde7d50b777c2edcdb62706 (diff)
- Improved check_email()
git-svn-id: https://svn.roundcube.net/trunk@3356 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index 3f2ac0289..32b522c5c 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/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'],