summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/scripting/libjs/base.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/libjs/base.js b/source4/scripting/libjs/base.js
index 8a07f4e383..fbceabf993 100644
--- a/source4/scripting/libjs/base.js
+++ b/source4/scripting/libjs/base.js
@@ -71,7 +71,7 @@ function substitute_var(str, subobj)
var list = split("${", str);
var i;
for (i=1;i<list.length;i++) {
- var list2 = split("}", list[i]);
+ var list2 = split("}", list[i], 1);
if (list2.length < 2) {
return undefined;
}