summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2023-11-21 13:58:47 +0100
committerEric Covener <covener@apache.org>2023-11-21 13:58:47 +0100
commit27a68e54b7c6d2ae80dca396fd2727852897dab1 (patch)
tree36ed474111bc406a79446d2d2fdaf2a9ea136637 /modules
parentmod_authnz_ldap: Follow up to r1913962: r->user not used in ldapsearch_check_... (diff)
downloadapache2-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.c6
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.") ;