nextcloud / nextcloud/contacts
Problem with comma-escaping → company
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 642
- Forks
- 220
- Avg merge
- 14h 39m
- Merged PRs (30d)
- 51
Description
Describe the bug
Entering a comma , in the company field leads to a \ before that comma. And: That issue will be repeated every time you re-edit/re-save the contact entry.
Example:
company 1, company 2, company 3
ist getting
company 1\, company 2\, company 3
And after the next saving:
company 1\\, company 2\\, company 3
... and so on.
Steps to reproduce
- Enter a comma in the company field (or open an contact entry with an existing comma in the company field)
- Save.
Expected behavior
No Backslashes (as written down)
Actual behavior
Backslahes before the compay
Contact version
5.4.0-beta.2
Operating system
No response
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database
MySQL
Additional info
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the company-field save and re-save flow in Contacts 5.4.0-beta.2 with PHP 8.1 and MySQL, then trace where commas are escaped during persistence or rendering. Done means entering a comma produces no backslash and repeated saves do not add additional escaping.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, php
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100