diff options
author | mark <mark> | 2011-12-07 21:35:03 +0000 |
---|---|---|
committer | mark <mark> | 2011-12-07 21:35:03 +0000 |
commit | d8d63a28503d40743425dceda7e0b744739eeb2a (patch) | |
tree | 8ec2f472575e0b8d81c8aefdf9f35ef0113253e9 /FS/FS/svc_broadband.pm | |
parent | ee2ee290c82013f870e2b23e4235e70998e59ee1 (diff) |
delimited MAC addresses, #15478
Diffstat (limited to 'FS/FS/svc_broadband.pm')
-rwxr-xr-x | FS/FS/svc_broadband.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/FS/FS/svc_broadband.pm b/FS/FS/svc_broadband.pm index 5469a66..2ac24e5 100755 --- a/FS/FS/svc_broadband.pm +++ b/FS/FS/svc_broadband.pm @@ -347,6 +347,11 @@ sub check { my $lat_lower = $nw_coords ? 1 : -90; my $lon_upper = $nw_coords ? -1 : 180; + # remove delimiters + my $mac_addr = uc($self->get('mac_addr')); + $mac_addr =~ s/[-: ]//g; + $self->set('mac_addr', $mac_addr); + my $error = $self->ut_numbern('svcnum') || $self->ut_numbern('blocknum') |