Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
policyd
policyd
Commits
31c5b94f
Commit
31c5b94f
authored
Mar 26, 2011
by
Nigel Kukard
Browse files
Small code cleanup
parent
2aa37700
Changes
1
Hide whitespace changes
Inline
Side-by-side
cbp/policies.pm
View file @
31c5b94f
...
...
@@ -519,10 +519,11 @@ sub emailAddressMatches
{
my
(
$email
,
$template
)
=
@_
;
my
$match
=
0
;
# Sender may be null
return
$match
if
(
$email
eq
"");
# Sender may be blank, in the case of <>
return
0
if
(
$email
eq
"");
my
$match
=
0
;
# Strip email addy
my
(
$email_user
,
$email_domain
)
=
(
$email
=~
/^(\S+)@(\S+)$/
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment