[freeside-commits] freeside/httemplate/misc/process nms-add_iface.html, 1.3, 1.4
Ivan,,,
ivan at wavetail.420.am
Mon Feb 28 15:47:09 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc/process
In directory wavetail.420.am:/tmp/cvs-serv28172/process
Modified Files:
nms-add_iface.html
Log Message:
restrict characters in serviceid a bit further
Index: nms-add_iface.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/process/nms-add_iface.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- nms-add_iface.html 27 Feb 2011 19:08:12 -0000 1.3
+++ nms-add_iface.html 28 Feb 2011 23:47:07 -0000 1.4
@@ -14,7 +14,8 @@
die 'invalid iface' unless $iface =~ /^[0-9A-Za-z_\-.\\\/ ]+$/;
my $serviceid = $cgi->param('serviceid');
-die 'invalid serviceid' unless $serviceid =~ /^[0-9A-Za-z_\-.\\\/ ]+$/;
+#die 'invalid serviceid' unless $serviceid =~ /^[0-9A-Za-z_\-.\\\/ ]+$/;
+die 'invalid serviceid' unless $serviceid =~ /^[0-9A-Za-z_]+$/;
my $nms = new FS::NetworkMonitoringSystem;
$nms->add_interface($host,$iface,$serviceid);
More information about the freeside-commits
mailing list