[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 307a395270395bd437347d44a94723f4b6fcf238

Ivan ivan at 420.am
Sat Jan 26 13:18:13 PST 2013


The branch, FREESIDE_2_3_BRANCH has been updated
       via  307a395270395bd437347d44a94723f4b6fcf238 (commit)
      from  f8097abf38654a86e0de1a798f88bb12eb980a35 (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 307a395270395bd437347d44a94723f4b6fcf238
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sat Jan 26 13:18:12 2013 -0800

    untaint spam tag levels

diff --git a/FS/FS/part_export/status_shellcommands.pm b/FS/FS/part_export/status_shellcommands.pm
index 53d2b37..c5200ec 100644
--- a/FS/FS/part_export/status_shellcommands.pm
+++ b/FS/FS/part_export/status_shellcommands.pm
@@ -43,6 +43,10 @@ sub _export_unsuspend {}
 sub export_setstatus {
   my($self, $svc_acct, $hashref) = @_;
 
+  for (qw( spam_tag2_level spam_kill_level )) {
+    $hashref->{$_} =~ /^\d+(\.\d+)?$/ or return "illegal $_";
+  }
+
   my @shellargs = (
     $svc_acct->svcnum,
     user          => $self->option('user') || 'root',

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_export/status_shellcommands.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list