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

vCard parsing: Handle incorrect line break characters #684

Open
respiranto opened this issue Sep 23, 2024 · 0 comments
Open

vCard parsing: Handle incorrect line break characters #684

respiranto opened this issue Sep 23, 2024 · 0 comments

Comments

@respiranto
Copy link

For all current versions (2.1, 3.0, 4.0), lines must be separated by CRLF (\r\n).

Currently, a bare LF (\n) is apparently treated equivalently to CRLF, and validate() does not report any errors.

I suggest that validate() yields an appropriate error and fixes the missing CR if the REPAIR flag is given.
Alternatively, the parsing could simply fail on bare LF characters.

@respiranto respiranto changed the title parsing: Handle incorrect line break characters vCard parsing: Handle incorrect line break characters Sep 24, 2024
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