Commit fe9c230b authored by Daniel Colascione's avatar Daniel Colascione

* cmdproxy.c (try_dequote_cmdline): Notice variable substitutions in

quoted strings and bail out.
parent 40697cd9
2011-04-27 Daniel Colascione <dan.colascione@gmail.com>
* cmdproxy.c (try_dequote_cmdline): Notice variable substitutions
inside quotation marks and bail out.
2011-04-26 Daniel Colascione <dan.colascione@gmail.com>
* cmdproxy.c (try_dequote_cmdline): New function.
......
......@@ -362,10 +362,20 @@ try_dequote_cmdline (char* cmdline)
state = NORMAL;
break;
case INSIDE_QUOTE:
*new_pos++ = c;
if (c == '"')
state = NORMAL;
switch (c)
{
case '"':
*new_pos++ = c;
state = NORMAL;
break;
case '%':
case '!':
/* Variable substitution inside quote. Bail out. */
return 0;
default:
*new_pos++ = c;
break;
}
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment