From 29d08a525118c05b2239f7bdca480a7422ef9190 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Mon, 10 Apr 2000 14:57:05 +0000 Subject: [PATCH] clicking on email addr sends you to compose screen git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@396 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/url_parser.php | 2 +- src/compose.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/functions/url_parser.php b/functions/url_parser.php index 560c837d..ff1df525 100644 --- a/functions/url_parser.php +++ b/functions/url_parser.php @@ -11,7 +11,7 @@ } function parseEmail ($body) { - $body = eregi_replace ("([a-z]|[0-9]|_|\.)+\@([a-z]|[0-9]|_)+(.([a-z]|[0-9]|_)+)*", "\\0", $body); + $body = eregi_replace ("([a-z]|[0-9]|_|\.|-)+\@([a-z]|[0-9]|_)+(\.([a-z]|[0-9]|_)+)*", "\\0", $body); return $body; } diff --git a/src/compose.php b/src/compose.php index 988cd76b..54d9314c 100644 --- a/src/compose.php +++ b/src/compose.php @@ -106,8 +106,10 @@ } } - $send_to = sqimap_find_email($send_to); - + if (!$send_to) { + $send_to = sqimap_find_email($send_to); + } + $send_to = ereg_replace("\"", "", $send_to); $send_to = stripslashes($send_to); -- 2.25.1