[asterisk-commits] mmichelson: branch 1.4 r86694 - /branches/1.4/apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Oct 22 09:48:46 CDT 2007
Author: mmichelson
Date: Mon Oct 22 09:48:46 2007
New Revision: 86694
URL: http://svn.digium.com/view/asterisk?view=rev&rev=86694
Log:
Account for the fact that sometimes headers may be terminated with \r\n instead of just \n
(closes issue #11043, reported by yehavi)
Modified:
branches/1.4/apps/app_voicemail.c
Modified: branches/1.4/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=86694&r1=86693&r2=86694
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Mon Oct 22 09:48:46 2007
@@ -8720,8 +8720,8 @@
ast_mutex_lock(&imaptemp_lock);
ast_copy_string(imaptemp, start+taglen, sizeof(imaptemp));
ast_mutex_unlock(&imaptemp_lock);
- eol_pnt = strchr(imaptemp,'\n');
- *eol_pnt = '\0';
+ if ((eol_pnt = strchr(imaptemp,'\r')) || (eol_pnt = strchr(imaptemp,'\n')))
+ *eol_pnt = '\0';
return imaptemp;
}
More information about the asterisk-commits
mailing list