Skip to content

Commit

Permalink
Fix issue with XML processing not working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jomann09 committed Jul 16, 2019
1 parent 6512508 commit b8006b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2.0.1 - 07/16/2019
------------------
- Fixed issue where xml data after decode would not pass valid data check -JO

2.0.0 - 06/20/2019
------------------
- Added the config option to hide the index.php submit commands page -JO
Expand Down
2 changes: 1 addition & 1 deletion server/includes/constants.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

// PRODUCT INFO
define("PRODUCT_NAME", "nrdp");
define("PRODUCT_VERSION", "2.0.0");
define("PRODUCT_VERSION", "2.0.1");

// ERROR STRINGS
define("ERROR_CAPABILITY_NOT_ENABLED","NOT ENABLED");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function nagioscorepassivecheck_submit_check_data()
{
// debug the request data
global $request;
foreach($request as $index => $req) {
foreach ($request as $index => $req) {
if (is_array($req)) {
$req = print_r($req, true);
}
Expand All @@ -68,7 +68,7 @@ function nagioscorepassivecheck_submit_check_data()
$data = grab_xml();
$data = @simplexml_load_string($data);

if ($data == false) {
if ($data === false) {

$xmlerr = print_r(libxml_get_errors(), true);
_debug("conversion to xml failed: {$xmlerr}");
Expand Down

0 comments on commit b8006b3

Please sign in to comment.