[freeside-commits] freeside/FS/FS/cust_main Import.pm,1.6,1.7
Ivan,,,
ivan at wavetail.420.am
Wed Aug 11 14:53:58 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/cust_main
In directory wavetail.420.am:/tmp/cvs-serv401
Modified Files:
Import.pm
Log Message:
at least show an error for bad pkgparts instead of a hang, RT#9578
Index: Import.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main/Import.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -w -d -r1.6 -r1.7
--- Import.pm 9 Apr 2010 08:18:24 -0000 1.6
+++ Import.pm 11 Aug 2010 21:53:56 -0000 1.7
@@ -328,6 +328,12 @@
tie my %hash, 'Tie::RefHash'; #this part is important
if ( $cust_pkg{'pkgpart'} ) {
+
+ unless ( $cust_pkg{'pkgpart'} =~ /^\d+$/ ) {
+ $dbh->rollback if $oldAutoCommit;
+ return 'illegal pkgpart: '. $cust_pkg{'pkgpart'};
+ }
+
my $cust_pkg = new FS::cust_pkg ( \%cust_pkg );
my @svc_x = ();
More information about the freeside-commits
mailing list