-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync regex here with forbidden characters, also that this never shoul…
…d be possible because adapter.js replaces them beforehand, so only relevant for "system level" stuff not coming from an adapter
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ | |
* Object DB in memory - Server | ||
* | ||
* Copyright 2013-2018 bluefox <[email protected]> | ||
* | ||
* | ||
* 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; | ||
} | ||
|