2012-04-10 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm: Check for single tag XMLs. Fixes bug #3514207. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5922 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
a7344af05e
commit
e3878ec855
|
@ -1,3 +1,7 @@
|
|||
2012-04-10 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/DataServer.pm: Check for single tag XMLs. Fixes bug #3514207.
|
||||
|
||||
2012-04-04 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/WMIServer.pm: Put a regexp that could crash the server
|
||||
|
|
|
@ -144,8 +144,12 @@ sub data_consumer ($$) {
|
|||
};
|
||||
|
||||
# Invalid XML
|
||||
if ($@) {
|
||||
$xml_err = $@;
|
||||
if ($@ || ref($xml_data) ne 'HASH') {
|
||||
if ($@) {
|
||||
$xml_err = $@;
|
||||
} else {
|
||||
$xml_err = "Invalid XML format.";
|
||||
}
|
||||
sleep (2);
|
||||
next;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue