[freeside-commits] branch FREESIDE_3_BRANCH updated. 81acd758e931c46a085e048f9557b0960aa7b651
Ivan
ivan at 420.am
Sat Jan 18 14:33:54 PST 2014
The branch, FREESIDE_3_BRANCH has been updated
via 81acd758e931c46a085e048f9557b0960aa7b651 (commit)
from 05135fbc01e3d10a835b73915f61c51bb5dd0c60 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 81acd758e931c46a085e048f9557b0960aa7b651
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sat Jan 18 14:33:43 2014 -0800
prohibit & in ACH bank name, RT#26634
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index ed64cde..43be568 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -2042,9 +2042,17 @@ sub check {
) {
$self->payname( $self->first. " ". $self->getfield('last') );
} else {
- $self->payname =~ /^([\w \,\.\-\'\&]+)$/
- or return gettext('illegal_name'). " payname: ". $self->payname;
- $self->payname($1);
+
+ if ( $self->payby =~ /^(CHEK|DCHK)$/ ) {
+ $self->payname =~ /^([\w \,\.\-\']*)$/
+ or return gettext('illegal_name'). " payname: ". $self->payname;
+ $self->payname($1);
+ } else {
+ $self->payname =~ /^([\w \,\.\-\'\&]*)$/
+ or return gettext('illegal_name'). " payname: ". $self->payname;
+ $self->payname($1);
+ }
+
}
return "Please select an invoicing locale"
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_main.pm | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
More information about the freeside-commits
mailing list