1
0
Fork 0

src/Network/props.cxx: with key=value, allow value to contain '='.

This commit is contained in:
Julian Smith 2021-11-26 12:01:44 +00:00
parent a98325e9d1
commit 5ef60c33c6

View file

@ -554,7 +554,7 @@ FGProps::PropsChannel::foundTerminator()
} else {
// generic parsing
for ( unsigned int i = 2; i < tokens.size(); ++i ) {
const auto pieces = simgear::strutils::split(tokens.at(i), "=");
const auto pieces = simgear::strutils::split(tokens.at(i), "=", 1);
if (pieces.size() != 2) {
SG_LOG(SG_NETWORK, SG_WARN, "malformed argument to Props protocol run:" << tokens.at(i));
continue;