mirror of https://github.com/Icinga/icinga2.git
Merge pull request #8008 from Icinga/bugfix/ascii-tables-in-plugin-output-8006
PluginUtility::ParseCheckOutput(): if it doesn't look like perfdata, it's not perfdata
This commit is contained in:
commit
02fd60934f
|
@ -109,7 +109,7 @@ std::pair<String, String> PluginUtility::ParseCheckOutput(const String& output)
|
||||||
if (!text.IsEmpty())
|
if (!text.IsEmpty())
|
||||||
text += "\n";
|
text += "\n";
|
||||||
|
|
||||||
if (delim != String::NPos) {
|
if (delim != String::NPos && line.FindFirstOf("=", delim) != String::NPos) {
|
||||||
text += line.SubStr(0, delim);
|
text += line.SubStr(0, delim);
|
||||||
|
|
||||||
if (!perfdata.IsEmpty())
|
if (!perfdata.IsEmpty())
|
||||||
|
|
Loading…
Reference in New Issue