(closes issue #11750)
Reported by: tasker
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@98934
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
return 0;
/* if there is no boundary marker, it's invalid */
- if (!(search = strcasestr(content_type, ";boundary=")) && (!(search = strcasestr(content_type, "; boundary="))))
+ if ((search = strcasestr(content_type, ";boundary=")))
+ search += 10;
+ else if ((search = strcasestr(content_type, "; boundary=")))
+ search += 11;
+ else
return 0;
- search += 10;
if (ast_strlen_zero(search))
return 0;