nextcloud / nextcloud/contacts

Problem with comma-escaping → company

Open
#3,598 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug feature: contacts
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
  1. Enter a comma in the company field (or open an contact entry with an existing comma in the company field)
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.