]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fixing bug where the authuser was mistakenly pulled from the mailbox string instead
authorMark Michelson <mmichelson@digium.com>
Tue, 26 Jun 2007 15:47:31 +0000 (15:47 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 26 Jun 2007 15:47:31 +0000 (15:47 +0000)
of the IMAP user.
(closes issue 10054, reported and patched by jaroth)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71796 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 3dd4c33d10a282e703c88eaa77a920a10924f7e7..2fee8e51a595b8e8f082a258319b05aaa65e6b8d 100644 (file)
@@ -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,'\"');