summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main_invoice.pm
diff options
context:
space:
mode:
authorivan <ivan>2002-02-10 17:02:37 +0000
committerivan <ivan>2002-02-10 17:02:37 +0000
commitf726710e136944a42cf3ac405eb5d29637eb67a6 (patch)
tree3f0c2b35344acdcc355cc6dbe248559db3e651b2 /FS/FS/cust_main_invoice.pm
parent775d9fe6df79f88479998937d58ae2237a2525aa (diff)
allow + in email addresses
Diffstat (limited to 'FS/FS/cust_main_invoice.pm')
-rw-r--r--FS/FS/cust_main_invoice.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_main_invoice.pm b/FS/FS/cust_main_invoice.pm
index 7d8a072..ebbadc6 100644
--- a/FS/FS/cust_main_invoice.pm
+++ b/FS/FS/cust_main_invoice.pm
@@ -129,7 +129,7 @@ sub checkdest {
} elsif ( $self->dest =~ /^(\d+)$/ ) {
return "Unknown local account (specified by svcnum: ". $self->dest. ")"
unless qsearchs( 'svc_acct', { 'svcnum' => $self->dest } );
- } elsif ( $self->dest =~ /^([\w\.\-\&]+)\@(([\w\.\-]+\.)+\w+)$/ ) {
+ } elsif ( $self->dest =~ /^([\w\.\-\&\+]+)\@(([\w\.\-]+\.)+\w+)$/ ) {
my($user, $domain) = ($1, $2);
# if ( $domain eq $mydomain ) {
# my $svc_acct = qsearchs( 'svc_acct', { 'username' => $user } );
@@ -167,7 +167,7 @@ sub address {
=head1 VERSION
-$Id: cust_main_invoice.pm,v 1.9 2002-02-10 16:49:50 ivan Exp $
+$Id: cust_main_invoice.pm,v 1.10 2002-02-10 17:02:37 ivan Exp $
=head1 BUGS