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:
Julian Brost 2021-03-05 17:19:38 +01:00 committed by GitHub
commit 02fd60934f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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