From 8bdd16bb42199db4e3a72246b9e9015b05d2108f Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 21 Dec 2017 09:49:34 +0100 Subject: [PATCH] Do not replace colons in plugin output This affects all interfaces which are using the CompatUtility class format helpers for short and long output. fixes #4785 --- lib/icinga/compatutility.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/icinga/compatutility.cpp b/lib/icinga/compatutility.cpp index 5d51db1a5..3399c14f3 100644 --- a/lib/icinga/compatutility.cpp +++ b/lib/icinga/compatutility.cpp @@ -615,12 +615,6 @@ String CompatUtility::GetCheckResultOutput(const CheckResult::Ptr& cr) String raw_output = cr->GetOutput(); - /* - * replace semi-colons with colons in output - * semi-colon is used as delimiter in various interfaces - */ - boost::algorithm::replace_all(raw_output, ";", ":"); - size_t line_end = raw_output.Find("\n"); return raw_output.SubStr(0, line_end); @@ -636,12 +630,6 @@ String CompatUtility::GetCheckResultLongOutput(const CheckResult::Ptr& cr) String raw_output = cr->GetOutput(); - /* - * replace semi-colons with colons in output - * semi-colon is used as delimiter in various interfaces - */ - boost::algorithm::replace_all(raw_output, ";", ":"); - size_t line_end = raw_output.Find("\n"); if (line_end > 0 && line_end != String::NPos) {