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

CATEGORIES only comma escaped list #625

Open
chris5560 opened this issue Aug 21, 2023 · 1 comment
Open

CATEGORIES only comma escaped list #625

chris5560 opened this issue Aug 21, 2023 · 1 comment

Comments

@chris5560
Copy link

VObject version 4.5.3

According to RFC 6350 (6.7.1), CATEGORIES should be a comma separated list.
But if you call $vCard->add('CATEGORIES', 'INTERNET,IETF,INDUSTRY')
then you will get 'CATEGORIES:INTERNET,IETF,INDUSTRY', which is a comma escaped list.
If you comment out the line (135) ',' => '.', in getRawMimeDirValue() function
inside lib/Property/Text.php file, it works correctly.
Unfortunately, I don't have the overview of your library to assess the global impact of a change.
Also, I haven't found any articles on the web about what other command to add CATEGORIES to a VCard.
Thanks for your support.

@gharlan
Copy link
Contributor

gharlan commented May 8, 2024

Are some backslashes missing in your code snippets?

Did you try to add the categories by array?
$vCard->add('CATEGORIES', ['INTERNET', 'IETF', 'INDUSTRY'])

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

2 participants