Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/contacts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2022-06-02 16:09:41 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-07-19 11:25:54 +0300
commitfabbbea49aa43669a63a3d12645243a0bcd616e4 (patch)
treee12306a45a4b02dd2907b77dbd0da73e660eddbf /src/services/appendContactToGroup.js
parent6d7483c9e0f9c19ec1d12626c0272ce78354a118 (diff)
Encode group names for x-property-replace header
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'src/services/appendContactToGroup.js')
-rw-r--r--src/services/appendContactToGroup.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/appendContactToGroup.js b/src/services/appendContactToGroup.js
index 6e520426..cfdd5567 100644
--- a/src/services/appendContactToGroup.js
+++ b/src/services/appendContactToGroup.js
@@ -34,7 +34,7 @@ const appendContactToGroup = async function(contact, groupName) {
return axios.patch(contact.url, {}, {
headers: {
'X-PROPERTY': 'CATEGORIES',
- 'X-PROPERTY-REPLACE': groups.join(','),
+ 'X-PROPERTY-REPLACE': groups.map(groupName => encodeURIComponent(groupName)).join(','),
},
})
}