diff options
author | Manuel Coutand | 2012-04-16 13:02:16 +0000 |
---|---|---|
committer | Eugene Tarassov | 2012-04-16 19:17:29 +0000 |
commit | 161218547d8948da5591046ba45982a99eb5b2cc (patch) | |
tree | 060099a597d4e13a9243619516ed87866158d596 | |
parent | 48b5ab28918ffbd5392a6e74236a843a3ac9a521 (diff) | |
download | org.eclipse.tcf.agent-161218547d8948da5591046ba45982a99eb5b2cc.tar.gz org.eclipse.tcf.agent-161218547d8948da5591046ba45982a99eb5b2cc.tar.xz org.eclipse.tcf.agent-161218547d8948da5591046ba45982a99eb5b2cc.zip |
Fix bug in context query parsing of escaped characters.
-rw-r--r-- | agent/tcf/services/contextquery.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/agent/tcf/services/contextquery.c b/agent/tcf/services/contextquery.c index f3226d89..9e018441 100644 --- a/agent/tcf/services/contextquery.c +++ b/agent/tcf/services/contextquery.c @@ -115,10 +115,7 @@ int parse_context_query(const char * q) { while (*q != '"') { if (*q == '\\') { q++; - if (*q == '\\' || *q == '"') { - add_char(*q++); - } - else { + if (*q != '\\' && *q != '"') { set_errno(ERR_OTHER, "Invalid context query syntax: \" and \\ are the only characters that can be escaped"); return -1; } |