app_voicemail: Fix enhancement that allowed multiple recipients in To: header
authorMatthew Jordan <mjordan@digium.com>
Sun, 9 Nov 2014 00:14:56 +0000 (00:14 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 9 Nov 2014 00:14:56 +0000 (00:14 +0000)
commit08d773532bdbef24c6785ab8c3c5144d6a10df80
treec6fd533bd3eb2f13cfb407c33297ca9559e92525
parent9a1ab5d548a064d62e65266353c672bba846b016
app_voicemail: Fix enhancement that allowed multiple recipients in To: header

An issue existed in r420577, which added multiple recipients to voicemail
emails. The patch, when looking at the intended recipients, looked ahead for
the '|' character inside a while loop which already had pulled out the
appropriate field parsing on the '|' character. This would cause it to skip
the recipients.

This patch fixes it such that it relies completely on the while loop to parse
through the e-mail fields.

Note that the original author of the patch looked at this fix and approved it.

ASTERISK-24250 #close
Reported by: abelbeck
patches:
  voicemail-420577-to-comma-fix.diff uploaded by abelbeck (License 5903)
........

Merged revisions 427585 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_voicemail.c