diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-03-12 08:43:21 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-03-12 08:44:03 +0100 |
commit | 097c544d98bbeee7d120af549116da57ee448ca5 (patch) | |
tree | fb43937fe729737b7bf1d5c302496e3ddaf7735f /program | |
parent | 2bbbca39ffdf99e5acc2d160c06ceed2f461e18f (diff) |
Don't show fake address - phishing prevention (#1488981)
Diffstat (limited to 'program')
-rw-r--r-- | program/steps/mail/func.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 19290e40a..92f32f910 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1440,6 +1440,11 @@ function rcmail_address_string($input, $max=null, $linked=false, $addicon=null, $mailto = $part['mailto']; $string = $part['string']; + // phishing email prevention (#1488981), e.g. "valid@email.addr <phishing@email.addr>" + if ($name && $name != $mailto && strpos($name, '@')) { + $name = ''; + } + // IDNA ASCII to Unicode if ($name == $mailto) $name = rcube_idn_to_utf8($name); |