-
-
Notifications
You must be signed in to change notification settings - Fork 67
Closed
Labels
Description
Example:
Code
let data = {
"norm_key": "data",
"bad/key":"other data"
}
db.push("normal_key", data);
db.push("bad/key", data);DB
{
"normal_key": {
"norm_key": "data",
"bad/key":"other data"
},
"bad": {
"key": {
"norm_key": "data",
"bad/key":"other data"
}
}
}
So you can create a key that has a / in it, but you can push data that does. This makes the "other data" unreachable, since by entering the key /bad/key/bad/key you'll search for
{
"bad": {
"key": {
"bad": {
"key":"other data"
}
}
}
}
That doesn't exist