2012-04-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/WMIServer.pm: Put a regexp that could crash the server inside an eval. Fixes bug #3509354. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5900 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
3508598a4c
commit
e1160b15e4
|
@ -1,3 +1,8 @@
|
|||
2012-04-04 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/WMIServer.pm: Put a regexp that could crash the server
|
||||
inside an eval. Fixes bug #3509354.
|
||||
|
||||
2012-04-03 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/NetworkServer.pm: Fixed the return value of
|
||||
|
|
|
@ -189,7 +189,10 @@ sub data_consumer ($$) {
|
|||
# Regexp
|
||||
if ($module->{'snmp_community'} ne ''){
|
||||
my $filter = $module->{'snmp_community'};
|
||||
$module_data = ($module_data =~ /$filter/) ? 1 : 0;
|
||||
eval {
|
||||
no warnings;
|
||||
$module_data = ($module_data =~ /$filter/) ? 1 : 0;
|
||||
};
|
||||
}
|
||||
|
||||
my $utimestamp = time ();
|
||||
|
|
Loading…
Reference in New Issue