mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2025-04-18 00:48:46 -04:00
Fix: Do not strcasecmp() content-type if unset (NULL)
Thanks to lns for finding it.
This commit is contained in:
parent
5de3e8b3b0
commit
c45b02414a
@ -280,6 +280,9 @@ int httpp_parse_postdata(http_parser_t *parser, const char *body_data, size_t le
|
|||||||
{
|
{
|
||||||
const char *header = httpp_getvar(parser, "content-type");
|
const char *header = httpp_getvar(parser, "content-type");
|
||||||
|
|
||||||
|
if (!header)
|
||||||
|
return -1;
|
||||||
|
|
||||||
if (strcasecmp(header, "application/x-www-form-urlencoded") != 0) {
|
if (strcasecmp(header, "application/x-www-form-urlencoded") != 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user