Skip to content
Snippets Groups Projects
Commit 564926f5 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1064249][ExtractAddress wirft Exception bei leerstring ]

parent df28f09e
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,8 @@ EmailUtils.extractAddress = function (pFullMailAddress) ...@@ -20,6 +20,8 @@ EmailUtils.extractAddress = function (pFullMailAddress)
{ {
//special treatment for crazy illegal addresses which can be sent in Outlook //special treatment for crazy illegal addresses which can be sent in Outlook
var mailAddress = pFullMailAddress.replace("<'", "<").replace("'>", ">").replace(/^'|'$/g, ""); var mailAddress = pFullMailAddress.replace("<'", "<").replace("'>", ">").replace(/^'|'$/g, "");
mailAddress = mail.extractAddress(mailAddress); //in some strange cases this address may be suddenly empty after the replaces => extractAddress would raise an exception in these cases
if (mailAddress != "")
mailAddress = mail.extractAddress(mailAddress);
return mailAddress; return mailAddress;
}; };
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment