summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Zeller <luz@plan44.ch>2011-08-18 18:12:31 +0200
committerPatrick Ohly <patrick.ohly@intel.com>2011-08-24 15:24:38 +0200
commit286207a4d243f9553157fcffa28650132779912d (patch)
tree9bba398abc54d755b6af5253d4a4b0e9e7fa9016
parente8fb7cdda152fd4eb26f63dc82f3c96063354ceb (diff)
engine: MIME-DIR, fixed de-escaping in only-de-escape-linefeeds mode
The way the code was before, a sequence like "foo\,bar" would have been converted into "foo,,bar", i.e. duplicated the escaped char instead of retaining the escape.
-rw-r--r--src/sysync/mimedirprofile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysync/mimedirprofile.cpp b/src/sysync/mimedirprofile.cpp
index c8fe995..4eaac27 100644
--- a/src/sysync/mimedirprofile.cpp
+++ b/src/sysync/mimedirprofile.cpp
@@ -3697,7 +3697,7 @@ bool TMimeDirProfileHandler::parseValue(
c=*p;
if (!c) break; // half escape sequence, ignore
else if (c=='n' || c=='N') c='\n';
- else if (aOnlyDeEscLF) val+=c; // if deescaping only for \n, transfer escape char into output
+ else if (aOnlyDeEscLF) val+='\\'; // if deescaping only for \n, transfer this non-LF escape into output
// other escaped chars are shown as themselves
}
// add char