mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Handle bad regexps
This commit is contained in:
@@ -219,14 +219,11 @@ if ($type =~ /^(\S+)::(\S+)$/) {
|
||||
# From another module
|
||||
($mod, $mtype) = ($1, $2);
|
||||
&foreign_require($mod, "status_monitor.pl");
|
||||
$html = &foreign_call($mod, "status_monitor_dialog", $mtype, $serv);
|
||||
if ($html) {
|
||||
print "<p>\n";
|
||||
print &ui_table_start($text{'mon_header3'}, "width=100%", 4,
|
||||
\@tds);
|
||||
print $html;
|
||||
print &ui_table_end();
|
||||
}
|
||||
print "<p>\n";
|
||||
print &ui_table_start($text{'mon_header3'}, "width=100%", 4,
|
||||
\@tds);
|
||||
print &foreign_call($mod, "status_monitor_dialog", $mtype, $serv);
|
||||
print &ui_table_end();
|
||||
}
|
||||
else {
|
||||
# From this module
|
||||
|
||||
@@ -44,9 +44,11 @@ eval {
|
||||
}
|
||||
eval {
|
||||
# Check for regexp match
|
||||
if ($data !~ /$re/i) {
|
||||
$up = 0;
|
||||
}
|
||||
eval {
|
||||
if ($data !~ /$re/i) {
|
||||
$up = 0;
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user