From 3f148d0add83fd0c3cae8fe4cc4b5cea6d9809d3 Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Tue, 11 Sep 2018 10:37:10 +0200 Subject: [PATCH] sync regex here with forbidden characters, also that this never should be possible because adapter.js replaces them beforehand, so only relevant for "system level" stuff not coming from an adapter --- lib/objects/objectsInMemServer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/objects/objectsInMemServer.js b/lib/objects/objectsInMemServer.js index 58d6af3316..3474804d31 100644 --- a/lib/objects/objectsInMemServer.js +++ b/lib/objects/objectsInMemServer.js @@ -2,9 +2,9 @@ * Object DB in memory - Server * * Copyright 2013-2018 bluefox - * + * * MIT License - * + * */ /* jshint -W097 */ @@ -99,7 +99,7 @@ function ObjectsInMemServer(settings) { let preserveSettings = []; let regUser = /^system\.user/; let regGroup = /^system\.group/; - let regCheckId = /[*?\[\]]/; + let regCheckId = /[\]\[*,;'"`<>\\?]/; let defaultAcl = { groups: [], acl: { @@ -2972,7 +2972,7 @@ function ObjectsInMemServer(settings) { } } } - + if (defaultNewAcl && options.ownerGroup && objects[id].acl && !objects[id].acl.ownerGroup) { objects[id].acl.ownerGroup = options.ownerGroup; }