From 259b993cae0608bbf896d9c7f54ed461762b591d Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Mon, 14 Aug 2006 04:25:13 +0000
Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/trunk@39706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 app.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app.c b/app.c
index db1567dfc1..1099feaea3 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));
-- 
GitLab