Skip to content

Commit 3f148d0

Browse files
committed
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
1 parent 6bdef64 commit 3f148d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/objects/objectsInMemServer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* Object DB in memory - Server
33
*
44
* Copyright 2013-2018 bluefox <dogafox@gmail.com>
5-
*
5+
*
66
* MIT License
7-
*
7+
*
88
*/
99

1010
/* jshint -W097 */
@@ -99,7 +99,7 @@ function ObjectsInMemServer(settings) {
9999
let preserveSettings = [];
100100
let regUser = /^system\.user/;
101101
let regGroup = /^system\.group/;
102-
let regCheckId = /[*?\[\]]/;
102+
let regCheckId = /[\]\[*,;'"`<>\\?]/;
103103
let defaultAcl = {
104104
groups: [],
105105
acl: {
@@ -2972,7 +2972,7 @@ function ObjectsInMemServer(settings) {
29722972
}
29732973
}
29742974
}
2975-
2975+
29762976
if (defaultNewAcl && options.ownerGroup && objects[id].acl && !objects[id].acl.ownerGroup) {
29772977
objects[id].acl.ownerGroup = options.ownerGroup;
29782978
}

0 commit comments

Comments
 (0)