On Fri, 15 May 2020 09:12:30 +0200 (CEST)
Antonio Suárez Pozuelo <[email protected]> wrote:
> Sure! There you are:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=64443
>
> Thanks for your support, Nick, really appreciate it. Best regards,
I've hacked up - but not tested - a simple patch (attached).
If it works for you I'll think through whether it's fit to
commit as-is or whether there's a case for something more
general (and complex).
--
Nick Kew
Index: modules/filters/mod_proxy_html.c
===================================================================
--- modules/filters/mod_proxy_html.c (revision 1877795)
+++ modules/filters/mod_proxy_html.c (working copy)
@@ -674,6 +674,16 @@
}
}
}
+ /* PR#64443: for <FORM>, insert accept-charset attribute if necessary */
+ if (!strcasecmp(name, "FORM")) {
+ const char *cenc;
+ xmlCharEncoding enc;
+ if (xml2enc_charset &&
+ (xml2enc_charset(ctx->f->r, &enc, &cenc) == APR_SUCCESS)) {
+ ap_fputstrs(ctx->f->next, ctx->bb, " accept-charset=\"",
+ cenc, "\"", NULL);
+ }
+ }
ctx->offset = 0;
if (desc && desc->empty)
ap_fputs(ctx->f->next, ctx->bb, ctx->etag);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]