mirror of
https://github.com/docusealco/docuseal
synced 2026-11-16 08:12:32 -05:00
skip unsafe keys
This commit is contained in:
1 parent
1cd3212736
commit
e5b9ee9502
1 file changed
+3
-1
@@ -432,8 +432,10 @@ function buildOperators (tags) {
|
|||||||
return operators
|
return operators
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const UNSAFE_KEYS = ['__proto__', 'constructor', 'prototype']
|
||||||
|
|
||||||
function hasBlankKey (keyString) {
|
function hasBlankKey (keyString) {
|
||||||
return !keyString || keyString.split('.').some((key) => !key.trim())
|
return !keyString || keyString.split('.').some((key) => !key.trim() || UNSAFE_KEYS.includes(key.trim()))
|
||||||
}
|
}
|
||||||
|
|
||||||
function digProperties (properties, keys) {
|
function digProperties (properties, keys) {
|
||||||
|
|||||||
Reference in new issue
Block a user