mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r11500: fixed a bug in the variable substition code using the new limit argument to split()
This commit is contained in:
parent
bee45531ea
commit
25131efea8
@ -71,7 +71,7 @@ function substitute_var(str, subobj)
|
|||||||
var list = split("${", str);
|
var list = split("${", str);
|
||||||
var i;
|
var i;
|
||||||
for (i=1;i<list.length;i++) {
|
for (i=1;i<list.length;i++) {
|
||||||
var list2 = split("}", list[i]);
|
var list2 = split("}", list[i], 1);
|
||||||
if (list2.length < 2) {
|
if (list2.length < 2) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user