提交 cac67d4a 编写于 作者: K kohsuke

escaping was missing outside quotes

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8734 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b123a99e
...@@ -180,7 +180,12 @@ public class QuotedStringTokenizer ...@@ -180,7 +180,12 @@ public class QuotedStringTokenizer
case 1: // Token case 1: // Token
_hasToken=true; _hasToken=true;
if(_delim.indexOf(c)>=0) if (escape)
{
escape=false;
_token.append(c);
}
else if(_delim.indexOf(c)>=0)
{ {
if (_returnDelimiters) if (_returnDelimiters)
_i--; _i--;
...@@ -198,6 +203,10 @@ public class QuotedStringTokenizer ...@@ -198,6 +203,10 @@ public class QuotedStringTokenizer
_token.append(c); _token.append(c);
state=3; state=3;
} }
else if (c=='\\')
{
escape=true;
}
else else
_token.append(c); _token.append(c);
continue; continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册