Skip to content
Commit 9c3bb71a authored by Laurent Montel's avatar Laurent Montel
Browse files

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
parent 982da20a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment