[freeside-commits] branch master updated. e8a50b2f6a6e37e4df79de8c2c456fdb9aa3c22f

Ivan ivan at 420.am
Mon Jun 1 11:31:42 PDT 2015


The branch, master has been updated
       via  e8a50b2f6a6e37e4df79de8c2c456fdb9aa3c22f (commit)
      from  588a331885d89bf8eb4f79ab4822e15c0e917329 (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 e8a50b2f6a6e37e4df79de8c2c456fdb9aa3c22f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Jun 1 11:31:40 2015 -0700

    svc_alarm.cs_receiver is <= 9 digits so we don't perl barf trying to store a bigint, RT#35176

diff --git a/FS/FS/svc_alarm.pm b/FS/FS/svc_alarm.pm
index 1c1754d..1714109 100644
--- a/FS/FS/svc_alarm.pm
+++ b/FS/FS/svc_alarm.pm
@@ -213,6 +213,10 @@ sub check {
   ;
   return $error if $error;
 
+  #really just an signed int, but to discourage storing other data (e.g. phone)
+  return 'CS Receiver must be 9 digits or less'
+    if $self->cs_receiver =~ /\d{10}/;
+
   $self->SUPER::check;
 }
 

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

Summary of changes:
 FS/FS/svc_alarm.pm |    4 ++++
 1 file changed, 4 insertions(+)




More information about the freeside-commits mailing list