D7016: Cannot retreive contacts from SOGo

Oleg Solovyov noreply at phabricator.kde.org
Mon Jul 31 13:01:56 BST 2017


McPain created this revision.
McPain added a project: KDE PIM.

REVISION SUMMARY
  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()

REPOSITORY
  R174 PIM: KContacts

REVISION DETAIL
  https://phabricator.kde.org/D7016

AFFECTED FILES
  src/vcardparser/vcardparser.cpp

To: McPain, #kde_pim
Cc: dvasin, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20170731/82b2c9ad/attachment.html>


More information about the kde-pim mailing list