You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
respiranto
changed the title
parsing: Handle incorrect line break characters
vCard parsing: Handle incorrect line break characters
Sep 24, 2024
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, andvalidate()
does not report any errors.I suggest that
validate()
yields an appropriate error and fixes the missing CR if theREPAIR
flag is given.Alternatively, the parsing could simply fail on bare LF characters.
The text was updated successfully, but these errors were encountered: