File tree 3 files changed +3
-0
lines changed
3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ $access{'edit'} || &error($text{'mon_ecannot'});
99@handlers = &list_handlers();
1010if ($in {' type' }) {
1111 # Create a new monitor
12+ $in {' type' } =~ / ^[a-zA-Z0-9\_\-\. ]+$ / || &error($text {' mon_etype' });
1213 $type = $in {' type' };
1314 $title = $text {' mon_create' };
1415 if ($in {' clone' }) {
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ mon_eremote2=Webmin server $1 could not be contacted : $2
104104mon_estatus=Webmin server $1 does not have the System and Server Status module
105105mon_ecannot=You are not allowed to edit monitors
106106mon_ertype=This monitor type is not available on $1
107+ mon_etype=Invalid monitor type name
107108mon_runon=Run commands on
108109mon_runon0=This server
109110mon_runon1=The remote host
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ require './status-lib.pl';
66$access {' edit' } || &error($text {' mon_ecannot' });
77&ReadParse();
88if ($in {' type' }) {
9+ $in {' type' } =~ / ^[a-zA-Z0-9\_\-\. ]+$ / || &error($text {' mon_etype' });
910 $serv -> {' type' } = $in {' type' };
1011 $serv -> {' id' } = time ();
1112 }
You can’t perform that action at this time.
0 commit comments