diff options
-rw-r--r-- | source4/scripting/libjs/base.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/libjs/base.js b/source4/scripting/libjs/base.js index fbceabf993..df0bfe0ce9 100644 --- a/source4/scripting/libjs/base.js +++ b/source4/scripting/libjs/base.js @@ -72,7 +72,7 @@ function substitute_var(str, subobj) var i; for (i=1;i<list.length;i++) { var list2 = split("}", list[i], 1); - if (list2.length < 2) { + if ((list2.length < 2) && (list2[0] + "}" != list[i])) { return undefined; } var key = list2[0]; |