diff options
author | ivan <ivan> | 2002-05-04 00:47:24 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-05-04 00:47:24 +0000 |
commit | 99230201dec5366bf58b33b29fb2f7ab4724b764 (patch) | |
tree | 199117f7cb815dc14ec46229a22d37dde70d61f6 /fs_signup | |
parent | b697a86ff35212aaf5ab8cf06d05ab3f7c619d20 (diff) |
prevent stuff passed from template/user from being used in searches by signup server
Diffstat (limited to 'fs_signup')
-rwxr-xr-x | fs_signup/fs_signup_server | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs_signup/fs_signup_server b/fs_signup/fs_signup_server index e8aa6ed64..70045e63b 100755 --- a/fs_signup/fs_signup_server +++ b/fs_signup/fs_signup_server @@ -142,9 +142,12 @@ while (1) { my @invoicing_list = split( /\s*\,\s*/, $signup_data->{'invoicing_list'} ); + $signup_data->{'pkgpart'} =~ /^(\d+)$/ or '' =~ /^()$/; + my $pkgpart = $1; + my $part_pkg = - qsearchs( 'part_pkg', { 'pkgpart' => $signup_data->{'pkgpart'} } ) - or $error ||= "WARNING: unknown pkgpart ". $signup_data->{pkgpart}; + qsearchs( 'part_pkg', { 'pkgpart' => $pkgpart } ) + or $error ||= "WARNING: unknown pkgpart: $pkgpart"; my $svcpart = $part_pkg->svcpart unless $error; my $cust_pkg = new FS::cust_pkg ( { |