diff options
author | Eric Covener <covener@apache.org> | 2023-11-21 13:58:47 +0100 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2023-11-21 13:58:47 +0100 |
commit | 27a68e54b7c6d2ae80dca396fd2727852897dab1 (patch) | |
tree | 36ed474111bc406a79446d2d2fdaf2a9ea136637 /modules | |
parent | mod_authnz_ldap: Follow up to r1913962: r->user not used in ldapsearch_check_... (diff) | |
download | apache2-27a68e54b7c6d2ae80dca396fd2727852897dab1.tar.xz apache2-27a68e54b7c6d2ae80dca396fd2727852897dab1.zip |
mod_xml2enc: remove dependency on xmlstring header
Submitted by: ttachi <tachihara@hotmail.com>
Github: closes #393
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1914013 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r-- | modules/filters/mod_xml2enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/filters/mod_xml2enc.c b/modules/filters/mod_xml2enc.c index 34f8e8ee09..e8ee264795 100644 --- a/modules/filters/mod_xml2enc.c +++ b/modules/filters/mod_xml2enc.c @@ -206,11 +206,11 @@ static void sniff_encoding(request_rec* r, xml2ctx* ctx) } } } - + /* to sniff, first we look for BOM */ if (ctx->xml2enc == XML_CHAR_ENCODING_NONE) { - ctx->xml2enc = xmlDetectCharEncoding((const xmlChar*)ctx->buf, - ctx->bytes); + ctx->xml2enc = xmlDetectCharEncoding((const unsigned char*)ctx->buf, + ctx->bytes); if (HAVE_ENCODING(ctx->xml2enc)) { ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(01432) "Got charset from XML rules.") ; |