for small property expansion it is possible to fail to expand strings as the subsequent indexOf checks can leave some length of the strings unscanned
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@497 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
3a7cc3809f
commit
ef7b66b071
|
@ -315,7 +315,7 @@ public class Main
|
|||
int i2=0;
|
||||
while (s!=null)
|
||||
{
|
||||
i1=s.indexOf("$(",i2);
|
||||
i1=s.indexOf("$(");
|
||||
if (i1<0)
|
||||
break;
|
||||
i2=s.indexOf(")",i1+2);
|
||||
|
@ -330,7 +330,7 @@ public class Main
|
|||
i2=0;
|
||||
while (s!=null)
|
||||
{
|
||||
i1=s.indexOf("${",i2);
|
||||
i1=s.indexOf("${");
|
||||
if (i1<0)
|
||||
break;
|
||||
i2=s.indexOf("}",i1+2);
|
||||
|
|
Loading…
Reference in New Issue