1
0
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:
Andrew Tridgell 2005-11-04 04:07:24 +00:00 committed by Gerald (Jerry) Carter
parent bee45531ea
commit 25131efea8

View File

@ -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;
} }