diff options
author | Mark Michelson <mmichelson@digium.com> | 2007-06-26 15:50:11 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2007-06-26 15:50:11 +0000 |
commit | 6dc12782c7e3635b12c6661dc2415d0d986b6a2e (patch) | |
tree | 511abdbd06a2a1b068c018b651083b8bded057d1 /apps | |
parent | 17892ed419418f84559a944ca286418ca0b4791e (diff) |
Merged revisions 71796 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r71796 | mmichelson | 2007-06-26 10:47:31 -0500 (Tue, 26 Jun 2007) | 5 lines
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: https://origsvn.digium.com/svn/asterisk/trunk@71797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index e183c0a2e..386f254d4 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -9217,10 +9217,10 @@ static char *get_user_by_mailbox(char *mailbox, char *buf, size_t len) if (ast_strlen_zero(mailbox)) return NULL; - if (!(start = strstr(mailbox, "user="))) + if (!(start = strstr(mailbox, "/user="))) return NULL; - ast_copy_string(buf, start+5, len); + ast_copy_string(buf, start+6, len); if (!(quote = strchr(buf, '\"'))) { if (!(eol_pnt = strchr(buf, '/'))) |