summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main_invoice.pm
diff options
context:
space:
mode:
authorivan <ivan>2001-10-25 16:13:10 +0000
committerivan <ivan>2001-10-25 16:13:10 +0000
commit76191674732cd788622f864d385187504a45f4ed (patch)
treed60b0cf62ee8bb6898e17d67cbe1ed6ddb66cd26 /FS/FS/cust_main_invoice.pm
parent03fbdb67704c8b1afa696b1d7ff98fc005c05af4 (diff)
& 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 d6b4cd9..3077d64 100644
--- a/FS/FS/cust_main_invoice.pm
+++ b/FS/FS/cust_main_invoice.pm
@@ -135,7 +135,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 } );
@@ -172,7 +172,7 @@ sub address {
=head1 VERSION
-$Id: cust_main_invoice.pm,v 1.7 2001-09-16 12:45:35 ivan Exp $
+$Id: cust_main_invoice.pm,v 1.8 2001-10-25 16:13:10 ivan Exp $
=head1 BUGS