mirror of https://github.com/mikaku/Monitorix.git
fix regular expression to be more accurate
This commit is contained in:
parent
6de50bed3c
commit
dd87652a25
|
@ -428,7 +428,7 @@ if($mode eq "localhost") {
|
|||
next;
|
||||
}
|
||||
|
||||
if($graph eq "all" || $graph =~ /_$g/) {
|
||||
if($graph eq "all" || $graph =~ m/^_$g\d+/) {
|
||||
no strict "refs";
|
||||
&$cgi($g, \%config, \%cgi);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue