Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xrm
basic
Commits
564926f5
Commit
564926f5
authored
4 years ago
by
Johannes Goderbauer
Browse files
Options
Downloads
Patches
Plain Diff
[Projekt: Entwicklung - Neon][TicketNr.: 1064249][ExtractAddress wirft Exception bei leerstring ]
parent
df28f09e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
process/EmailUtil_lib/process.js
+3
-1
3 additions, 1 deletion
process/EmailUtil_lib/process.js
with
3 additions
and
1 deletion
process/EmailUtil_lib/process.js
+
3
−
1
View file @
564926f5
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment