summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-04 04:07:24 +0000
committerAndrew Tridgell <tridge@samba.org>2005-11-04 04:07:24 +0000
commit3d195634e447b8de6f1f66223c48faf8f445de5d (patch)
treeef59f7b7799a26a8a5475664fb500602038dc936
parentcbb125458f6f062971b049b4b564d378d3466edb (diff)
downloadsamba-3d195634e447b8de6f1f66223c48faf8f445de5d.tar.gz
samba-3d195634e447b8de6f1f66223c48faf8f445de5d.tar.xz
samba-3d195634e447b8de6f1f66223c48faf8f445de5d.zip
r11500: fixed a bug in the variable substition code using the new limit argument to split()
-rw-r--r--source/scripting/libjs/base.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/scripting/libjs/base.js b/source/scripting/libjs/base.js
index 8a07f4e3831..fbceabf9939 100644
--- a/source/scripting/libjs/base.js
+++ b/source/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;
}