JS: Restrict length of state path in vuex model

This commit is contained in:
Asger F
2023-06-14 15:48:58 +02:00
parent e8b12ce416
commit 22b98c8959

View File

@@ -289,7 +289,8 @@ module Vuex {
or
exists(string base, string prop |
result = stateRefByAccessPath(base).getMember(prop) and
path = appendToNamespace(base, prop)
path = appendToNamespace(base, prop) and
path.length() < 100
)
}