PR: 10617
Submitted by: Arthur P. Smith <apsmith@aps.org>
Reviewed/modified by: Jeff Trawick
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96003
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.40
+ *) mod_ext_filter: don't segfault if content-type is not set. PR 10617.
+ [Arthur P. Smith <apsmith@aps.org>, Jeff Trawick]
+
*) Fix an error when building ApacheMonitor.
[James Cox <imajes@php.net>]
ctx->p = f->r->pool;
if (ctx->filter->intype &&
ctx->filter->intype != INTYPE_ALL &&
- strcasecmp(ctx->filter->intype, f->r->content_type)) {
+ (!f->r->content_type ||
+ strcasecmp(ctx->filter->intype, f->r->content_type))) {
/* wrong IMT for us; don't mess with the output */
ctx->noop = 1;
}