diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2009-10-29 18:02:43 +0100 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2009-11-04 17:02:24 +0100 |
commit | 082485a23217781ee4f81cac0124db2c75ead96f (patch) | |
tree | 51196fe2ad873f85f651cdb848d03b32c8e0c425 | |
parent | f33a48a9e70e59382a6c8e4366840da418f7fa7d (diff) |
SafeConfigNode::escape(): did not work correctly for strings with ! in them
The ! sign was used as escape character and thus has to be escaped
itself. In the less strict mode this wasn't done. Shouldn't affect
SyncEvolution 0.9.1 where the code was used in strict mode for
change tracking nodes, but broke the new nonce saving.
-rw-r--r-- | src/syncevo/SafeConfigNode.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/syncevo/SafeConfigNode.cpp b/src/syncevo/SafeConfigNode.cpp index 5fba4f2c..f3d2f4bc 100644 --- a/src/syncevo/SafeConfigNode.cpp +++ b/src/syncevo/SafeConfigNode.cpp @@ -94,6 +94,7 @@ string SafeConfigNode::escape(const string &str, bool allSpaces, bool strictMode c == '_') : !(((isLeadingSpace || allSpaces) && isspace(c)) || c == '=' || + c == '!' || c == '\r' || c == '\n')) { res += c; |