Apply patch from McPain

Authored by mlaurent on Aug 1 2017, 11:13 AM.

Description

Apply patch from McPain

"VCards in SOGo are represented without trailing newlines after END:VCARD
kcontacts parser doesn't expect this and on reaching "END:VCARD" text.indexOf('\n', lineStart) will return '-1' and that breaks 'for' loop.

Fixed behavior: if text.indexOf('\n', lineStart) returns -1 [there are no more newlines] lineEnd will be set to the returned value of text.size()"

Differential Revision: https://phabricator.kde.org/D7016

Details

Committed
mlaurentAug 1 2017, 11:13 AM
Differential Revision
D7016: Cannot retreive contacts from SOGo
Parents
R174:982da20a043b: Try to implement vcard4 support for logo not success yet
Branches
Unknown
Tags
Unknown
References
tag: v17.07.90