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:
Jesse McConnell 2009-07-08 19:39:13 +00:00
parent 3a7cc3809f
commit ef7b66b071
1 changed files with 2 additions and 2 deletions

View File

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