From a1854fa07428348632b696eaf289debfc454ea67 Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Wed, 18 Dec 2024 18:31:20 +0000 Subject: [PATCH] fix createmesh with email as userid #6596 --- meshcentral.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meshcentral.js b/meshcentral.js index 10b7098e..dd75328b 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -2404,6 +2404,10 @@ function CreateMeshCentralServer(config, args) { storeEvent.links = Object.assign({}, storeEvent.links); for (var i in storeEvent.links) { var ue = obj.common.escapeFieldName(i); if (ue !== i) { storeEvent.links[ue] = storeEvent.links[i]; delete storeEvent.links[i]; } } } + if (storeEvent.mesh) { + // Escape "mesh" names that may have "." and/or "$" + storeEvent.mesh = obj.common.escapeLinksFieldNameEx(storeEvent.mesh); + } storeEvent.ids = ids; obj.db.StoreEvent(storeEvent); }