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 v3.0/v4.0 validation: stray backslashes #686

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

vCard v3.0/v4.0 validation: stray backslashes #686

respiranto opened this issue Sep 23, 2024 · 0 comments

Comments

@respiranto
Copy link

The below only applies to v3.0 and v4.0 (i.e., not v2.1):

For properties with value type TEXT (e.g., NOTE), backslashes are only permitted as part of an escape sequence.

Currently, other (stray) backslashes are kept verbatim, and validate() does not provide an error message.

I would expect that validate() yields an error message.
Optionally, if the REPAIR flag is given, validate() might remove stray backslashes.

Example: NOTE:_\x_\:_\\_\;_\,_\n_\N_ is decoded to _\x_\:_\_;_,_<LF>_<LF>_ where <LF> is the LF (\n) character.

@respiranto respiranto changed the title v3.0/v4.0 validation: stray backslashes vCard v3.0/v4.0 validation: stray backslashes 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