aboutsummaryrefslogtreecommitdiffstats
path: root/app.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-14 04:25:13 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-14 04:25:13 +0000
commite385b2d6d5297c0ba9e1ed48bb3d4a1082900039 (patch)
treeb11f56b5fa0571bd3ab8e7309a6dcab4eb54eddd /app.c
parente054e18cbd7928a7de603f731ea84b30aa25a6c3 (diff)
don't try to ignore the contents of a quoted string in ast_separate_app_args()
if the delimeter is actually the quotation mark (fixes issue #7622) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39706 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'app.c')
-rw-r--r--app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.c b/app.c
index db1567dfc..1099feaea 100644
--- a/app.c
+++ b/app.c
@@ -884,7 +884,7 @@ unsigned int ast_app_separate_args(char *buf, char delim, char **array, int arra
else if (*scan == ')') {
if (paren)
paren--;
- } else if (*scan == '"') {
+ } else if (*scan == '"' && delim != '"') {
quote = quote ? 0 : 1;
/* Remove quote character from argument */
memmove(scan, scan + 1, strlen(scan));