aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-26 15:47:31 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-26 15:47:31 +0000
commit8143812be27c0519d6529388e18e94e8700e12a3 (patch)
tree96094a5cfe35bf445409ed22c112357c6c2bf21d /apps/app_voicemail.c
parent054cac2e3a7e97045de32d26e8c41dbb0ebe3116 (diff)
Fixing bug where the authuser was mistakenly pulled from the mailbox string instead
of the IMAP user. (closes issue 10054, reported and patched by jaroth) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71796 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 3dd4c33d1..2fee8e51a 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -8689,12 +8689,12 @@ static char *get_user_by_mailbox(char *mailbox)
if (!mailbox)
return NULL;
- start = strstr(mailbox,"user=");
+ start = strstr(mailbox,"/user=");
if (!start)
return NULL;
ast_mutex_lock(&imaptemp_lock);
- ast_copy_string(imaptemp, start+5, sizeof(imaptemp));
+ ast_copy_string(imaptemp, start+6, sizeof(imaptemp));
ast_mutex_unlock(&imaptemp_lock);
quote = strchr(imaptemp,'\"');