diff --git a/src/src/ESPEasyCore/ESPEasyRules.cpp b/src/src/ESPEasyCore/ESPEasyRules.cpp index 1621ff53c..6c539e3c8 100644 --- a/src/src/ESPEasyCore/ESPEasyRules.cpp +++ b/src/src/ESPEasyCore/ESPEasyRules.cpp @@ -884,8 +884,8 @@ void parse_string_commands(String& line) { #if FEATURE_EXTENDED_STRING_FUNCTIONS hideMasked(replacement, mustReplaceMaskedChars); // apply #else // if FEATURE_EXTENDED_STRING_FUNCTIONS - line.replace('{', static_cast(0x02)); - line.replace('}', static_cast(0x03)); + replacement.replace('{', static_cast(0x02)); + replacement.replace('}', static_cast(0x03)); #endif // if FEATURE_EXTENDED_STRING_FUNCTIONS }