[asterisk-commits] file: branch 1.4 r98894 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 14 16:41:56 CST 2008


Author: file
Date: Mon Jan 14 16:41:55 2008
New Revision: 98894

URL: http://svn.digium.com/view/asterisk?view=rev&rev=98894
Log:
Accept "; boundary=" not just ";boundary=" in the multipart mixed content type.
(closes issue #11750)
Reported by: tasker

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=98894&r1=98893&r2=98894
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Mon Jan 14 16:41:55 2008
@@ -4864,7 +4864,7 @@
 		return 0;
 
 	/* if there is no boundary marker, it's invalid */
-	if (!(search = strcasestr(content_type, ";boundary=")))
+	if (!(search = strcasestr(content_type, ";boundary=")) && (!(search = strcasestr(content_type, "; boundary="))))
 		return 0;
 
 	search += 10;




More information about the asterisk-commits mailing list