diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-22 14:58:57 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-22 14:58:57 +0000 |
commit | de9ba78aa9280ffa83a8bbe1b10027d894df52ff (patch) | |
tree | 5102d890c5e1b67feb63ab655a2bc1fd8caca6cb /apps | |
parent | 461aebe81f6473ad2f4d5f40efd9f7687871a4c3 (diff) |
Merged revisions 86694 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r86694 | mmichelson | 2007-10-22 09:48:46 -0500 (Mon, 22 Oct 2007) | 5 lines
Account for the fact that sometimes headers may be terminated with \r\n instead of just \n
(closes issue #11043, reported by yehavi)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86696 f38db490-d61c-443f-a65b-d21fe96a405b
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 6fbb5b1db..525342ea5 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -9383,8 +9383,8 @@ static char *get_header_by_tag(char *header, char *tag, char *buf, size_t len) memset(buf, 0, len); ast_copy_string(buf, start+taglen, len); - eol_pnt = strchr(buf,'\n'); - *eol_pnt = '\0'; + if ((eol_pnt = strchr(buf,'\r')) || (eol_pnt = strchr(buf,'\n'))) + *eol_pnt = '\0'; return buf; } |