1
0
mirror of https://github.com/Icinga/icinga2.git synced 2025-04-08 17:05:25 +02:00

Fix string comparison on edge cases

This fixes a few edge cases where the string comparison failed before.
This commit is contained in:
Michael Insel 2018-12-05 20:12:06 +01:00
parent cc417ca176
commit 1352b15220

@ -293,7 +293,7 @@ bool NodeUtility::GetConfigurationIncludeState(const String& value, bool recursi
* First hit breaks out of the loop.
*/
if (!line.compare(affectedInclude)) {
if (line.compare(0, affectedInclude.GetLength(), affectedInclude) == 0) {
isIncluded = true;
/*