summaryrefslogtreecommitdiff
path: root/httemplate/edit/process
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-04-14 15:36:20 -0700
committerMark Wells <mark@freeside.biz>2012-04-14 15:36:20 -0700
commit5371ad9dd6bf63e29ffc85c8381f1ea2630b1749 (patch)
tree0109d86cf93a84697fe84fc29927a9f058cf3d93 /httemplate/edit/process
parent5abe1300f16cf01a6311203deee29373162491c7 (diff)
parent401ba3ab0637de1bc460370949b75dca092375d8 (diff)
merge master
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r--httemplate/edit/process/svc_broadband.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/edit/process/svc_broadband.cgi b/httemplate/edit/process/svc_broadband.cgi
index 31def255c..90eab4aad 100644
--- a/httemplate/edit/process/svc_broadband.cgi
+++ b/httemplate/edit/process/svc_broadband.cgi
@@ -13,9 +13,9 @@ die "access denied"
sub precheck {
my $cgi = shift;
- if ( !defined($cgi->param('ip_addr')) ) {
- $cgi->param('ip_addr', $cgi->param('prev_ip_addr') || '');
- }
+ my $ip_addr = $cgi->param('ip_addr');
+ $ip_addr =~ s/[^\d\.]//g; # converts '(automatic)' to null
+ $cgi->param('ip_addr', $ip_addr);
$cgi->param("usergroup", [ $cgi->param('usergroup') ]);
''
}