Skip to content

Commit

Permalink
sync regex here with forbidden characters, also that this never shoul…
Browse files Browse the repository at this point in the history
…d be possible because adapter.js replaces them beforehand, so only relevant for "system level" stuff not coming from an adapter
  • Loading branch information
Apollon77 committed Sep 11, 2018
1 parent 6bdef64 commit 3f148d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/objects/objectsInMemServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* Object DB in memory - Server
*
* Copyright 2013-2018 bluefox <[email protected]>
*
*
* MIT License
*
*
*/

/* jshint -W097 */
Expand Down Expand Up @@ -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: {
Expand Down Expand Up @@ -2972,7 +2972,7 @@ function ObjectsInMemServer(settings) {
}
}
}

if (defaultNewAcl && options.ownerGroup && objects[id].acl && !objects[id].acl.ownerGroup) {
objects[id].acl.ownerGroup = options.ownerGroup;
}
Expand Down

0 comments on commit 3f148d0

Please sign in to comment.