There were some places that were expecting what you put into frec
would be what frec->name would be. Not true anymore.
There are enough other places that were already doing the strcasecmp
that it makes more sense to just make it all strcasecmp across the
board rather than changing the UPPERCASE to lowercase.
(None of these with the exception of old_filter look to be in the
critical path anyway...)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90890
13f79535-47bb-0310-9956-
ffa450edef68
charset_filter_ctx_t *curctx, *last_xlate_ctx = NULL,
*ctx = f->ctx;
int debug = ctx->dc->debug;
- int output = !strcmp(f->frec->name, XLATEOUT_FILTER_NAME);
+ int output = !strcasecmp(f->frec->name, XLATEOUT_FILTER_NAME);
if (ctx->noop) {
return;
*/
curf = output ? f->r->output_filters : f->r->input_filters;
while (curf) {
- if (!strcmp(curf->frec->name, f->frec->name) &&
+ if (!strcasecmp(curf->frec->name, f->frec->name) &&
curf->ctx) {
curctx = (charset_filter_ctx_t *)curf->ctx;
if (!last_xlate_ctx) {
* again.
*/
for ((f = r->output_filters); (f = f->next);) {
- if (!strcmp(f->frec->name, "CACHE")) {
+ if (!strcasecmp(f->frec->name, "CACHE")) {
ap_remove_output_filter(f);
}
}
&mpm_perchild_module);
while (f) {
- if (!strcmp("PERCHILD_BUFFER", f->frec->name)) {
+ if (!strcasecmp("PERCHILD_BUFFER", f->frec->name)) {
ap_remove_output_filter(f);
break;
}
&mpm_perchild_module);
while (f) {
- if (!strcmp("PERCHILD_BUFFER", f->frec->name)) {
+ if (!strcasecmp("PERCHILD_BUFFER", f->frec->name)) {
ap_remove_output_filter(f);
break;
}
/* this will typically exit on the first test */
for (f = r->output_filters; f != NULL; f = f->next)
- if (strcmp("OLD_WRITE", f->frec->name) == 0)
+ if (strcasecmp("OLD_WRITE", f->frec->name) == 0)
break;
if (f == NULL) {
/* our filter hasn't been added yet */