]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Accept "; boundary=" not just ";boundary=" in the multipart mixed content type.
authorJoshua Colp <jcolp@digium.com>
Mon, 14 Jan 2008 22:41:55 +0000 (22:41 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 14 Jan 2008 22:41:55 +0000 (22:41 +0000)
(closes issue #11750)
Reported by: tasker

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@98894 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 92c1389101671642d9e2a5f79743d93b1f0813f8..418f4df85210d1553538146bf1344339219aad73 100644 (file)
@@ -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;