From d2f519dcfa071f0bbcf65c66a2e09423c4b70b63 Mon Sep 17 00:00:00 2001 From: Sean Bright <sean.bright@gmail.com> Date: Sat, 13 Apr 2019 14:36:56 -0400 Subject: [PATCH] app_voicemail: Don't split mailbox options on comma MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because the per-mailbox options are the last thing on a line, don't look for or stomp on any subsequent commas. ASTERISK-27935 #close Reported by: Sébastien Duthil Change-Id: I07b2eb4a33c303d0c7114d5b906f8c067c60a153 --- apps/app_voicemail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 079aaac9e7..d442c68245 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -12417,8 +12417,8 @@ static int append_mailbox(const char *context, const char *box, const char *data if (stringp && (s = strsep(&stringp, ","))) { ast_copy_string(vmu->pager, s, sizeof(vmu->pager)); } - if (stringp && (s = strsep(&stringp, ","))) { - apply_options(vmu, s); + if (stringp) { + apply_options(vmu, stringp); } switch (vmu->passwordlocation) { -- GitLab