PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » Contact_Vcard_Parse » Bug #7898

vCard with leading spaces at the start of each line fails to parse

Details

Submitted2006-06-14 12:45 UTC
Fromscott at realorganized dot com
StatusBogus
PackageContact_Vcard_Parse
PHP Version5.0.5
OSLinux
Roadmaps(Not assigned)

Comments

[2006-06-14 12:45 UTC] scott at realorganized dot com

Description:
------------
I import the following vcard:

BEGIN:VCARD
VERSION:3.0
N:Schmitz;Lorraine;;;
FN:Lorraine Schmitz
EMAIL;type=INTERNET;type=WORK;type=pref:
LSBeaverton@aol.com
TEL;type=CELL:(971) 570-3246
TEL;type=HOME;type=pref:503-591-0777
item1.ADR;type=WORK;type=pref:;;20164 SW Monson;Aloha;
OR;97006;USA
item1.X-ABADR:us
END:VCARD

It has a leading space before each crlf. According to
the specification, leading white space (space, tab) is
permitted.

When I do this, nothing is parsed.

[2006-06-14 12:47 UTC] scott at realorganized dot com

"It has leading spate before each crlf" should read "It
has white space before the start of the actual tokens on
a line."