Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The VObject does not no how to parse muilti line fields and line breaks =0D=0A= #222

Closed
evert opened this issue Oct 14, 2012 · 2 comments
Closed

Comments

@evert
Copy link
Member

evert commented Oct 14, 2012

Original author: fta...@aptus.com (April 08, 2011 07:38:29)

Dear Evert:
Thank you for great work,

Just wanted to update you with my output and wonder if I am misusing your VObject library

I have attached my simple script <index.php> and the vcard that I am trying to parse.

Wonder if you could confirm the bug or correct my working script if possible.

Regards,
Feras


What is the expected output? What do you see instead?

EXPECTED OUTPUT:

There are 0
It took us only 0.033527851104736 seconds

INSTEAD WE GOT:

Fatal error: Uncaught exception 'Sabre_VObject_ParseException' with message 'Invalid VObject, line 17 did not follow icalendar format' in /usr/local/vcard/VObject/Reader.php:112 Stack trace: #0 /usr/local/vcard/VObject/Reader.php(83): Sabre_VObject_Reader::readLine(Array) #1 /usr/local/vcard/VObject/Reader.php(54): Sabre_VObject_Reader::readLine(Array) #2 /usr/local/vcard/www/index.php(9): Sabre_VObject_Reader::read('BEGIN:VCARD??VE...') #3 {main} thrown in /usr/local/vcard/VObject/Reader.php on line 112

Original issue: http://code.google.com/p/sabredav/issues/detail?id=122

@evert evert closed this as completed Oct 14, 2012
@evert
Copy link
Member Author

evert commented Oct 14, 2012

From evert...@gmail.com on April 08, 2011 15:59:12:
Hi Feras,

The vcard you attached appears to be corrupt. The spec says that long lines can be split into multiple lines, if the next line starts with a space, or tab.

Line 17 in that object does not start with either, which is why you're seeing the error.

Does this help? If you can find out what generated the file (looks like syncevolution?) you might want to see if you can file a bug report with them..

@evert
Copy link
Member Author

evert commented Oct 14, 2012

From evert...@gmail.com on April 16, 2011 22:05:51:
No further feedback received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant