CardDAV: fixed line end after UID

The vCard standard requires \r\n, so use that when embedding
UID. Didn't matter in practice.
This commit is contained in:
Patrick Ohly 2011-10-04 16:12:40 +02:00
parent 6a9b906b35
commit d5119ef386

View file

@ -78,7 +78,7 @@ const std::string *CardDAVSource::createResourceName(const std::string &item, st
size_t start = buffer.find(END_VCARD);
if (start != buffer.npos) {
start++;
buffer.insert(start, StringPrintf("UID:%s\n", luid.c_str()));
buffer.insert(start, StringPrintf("UID:%s\r\n", luid.c_str()));
}
luid += SUFFIX;
return &buffer;