From: Joshua Colp Date: Mon, 14 Jan 2008 22:41:55 +0000 (+0000) Subject: Accept "; boundary=" not just ";boundary=" in the multipart mixed content type. X-Git-Tag: 1.4.18~12^2~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3458a4976b94dbe4e0f8b7cf301e96f4e6129e6;p=thirdparty%2Fasterisk.git Accept "; boundary=" not just ";boundary=" in the multipart mixed content type. (closes issue #11750) Reported by: tasker git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@98894 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 92c1389101..418f4df852 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4864,7 +4864,7 @@ static int find_sdp(struct sip_request *req) 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;