fix set command: allow strings to contain spaces
This commit is contained in:
parent
b075cf5f01
commit
6c95d65afa
1 changed files with 4 additions and 4 deletions
|
@ -272,10 +272,10 @@ PropsChannel::foundTerminator()
|
||||||
} else if ( command == "set" ) {
|
} else if ( command == "set" ) {
|
||||||
if ( tokens.size() >= 2 ) {
|
if ( tokens.size() >= 2 ) {
|
||||||
string value, tmp;
|
string value, tmp;
|
||||||
if ( tokens.size() == 3 ) {
|
for (unsigned int i = 2; i < tokens.size(); i++) {
|
||||||
value = tokens[2];
|
if (i > 2)
|
||||||
} else {
|
value += " ";
|
||||||
value = "";
|
value += tokens[i];
|
||||||
}
|
}
|
||||||
node->getNode( tokens[1].c_str(), true )
|
node->getNode( tokens[1].c_str(), true )
|
||||||
->setStringValue(value.c_str());
|
->setStringValue(value.c_str());
|
||||||
|
|
Loading…
Add table
Reference in a new issue