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:
Ramon Novoa 2012-04-10 14:21:56 +00:00
parent a7344af05e
commit e3878ec855
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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;
}