Skip to content

fix(vcard): Improve property value escaping#7931

Merged
j-g00da merged 1 commit intomainfrom
j-g00da/vcard-newlines-escape
Mar 3, 2026
Merged

fix(vcard): Improve property value escaping#7931
j-g00da merged 1 commit intomainfrom
j-g00da/vcard-newlines-escape

Conversation

@j-g00da
Copy link
Contributor

@j-g00da j-g00da commented Mar 2, 2026

Implements property value escaping according to RFC6350 section 3.4. https://www.rfc-editor.org/rfc/rfc6350.html#section-3.4

Fixes: #7893

@j-g00da j-g00da requested a review from Hocuri March 2, 2026 10:16
@j-g00da j-g00da force-pushed the j-g00da/vcard-newlines-escape branch from 4b98c03 to 8d29b2d Compare March 2, 2026 10:18
@j-g00da
Copy link
Contributor Author

j-g00da commented Mar 2, 2026

I decided to implement whole rfc6350 escaping, so we don't run into the same issues with backslashes or semicolons. I don't think this needs a separate test, as this is tested by round trip (test_make_and_parse_vcard) already.

@j-g00da j-g00da force-pushed the j-g00da/vcard-newlines-escape branch from 8d29b2d to ef2d072 Compare March 2, 2026 10:23
@j-g00da j-g00da force-pushed the j-g00da/vcard-newlines-escape branch from ef2d072 to 252ea11 Compare March 2, 2026 17:42
@j-g00da j-g00da requested a review from link2xt March 2, 2026 17:45
@j-g00da j-g00da marked this pull request as draft March 3, 2026 10:14
Implements property value escaping according to RFC6350 section 3.4.
<https://www.rfc-editor.org/rfc/rfc6350.html#section-3.4>

Fixes: #7893
@j-g00da j-g00da force-pushed the j-g00da/vcard-newlines-escape branch from 252ea11 to 0cc908f Compare March 3, 2026 10:30
@j-g00da j-g00da marked this pull request as ready for review March 3, 2026 10:43
Copy link
Collaborator

@Hocuri Hocuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@Hocuri
Copy link
Collaborator

Hocuri commented Mar 3, 2026

@j-g00da in core, usually, the person who opened the PR merges it as soon as he/she thinks that it got enough scrutiny now. This ensures that the PR is merged in the way the author intended (squash/merge commit/rebase). So, that's on you now (I assume you have sufficient permissions for this?)

@j-g00da j-g00da merged commit 0622289 into main Mar 3, 2026
30 checks passed
@j-g00da j-g00da deleted the j-g00da/vcard-newlines-escape branch March 3, 2026 12:45
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

Successfully merging this pull request may close these issues.

Newlines should be escaped with \n in contact vcard

3 participants