From: Joe Orton Date: Thu, 4 Jun 2026 08:43:59 +0000 (+0000) Subject: * modules/filters/mod_xml2enc.c (xml2enc_hooks): assert() X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=80dc6b24ac514c9bfc8a35049a4c5cba41221f44;p=thirdparty%2Fapache%2Fhttpd.git * modules/filters/mod_xml2enc.c (xml2enc_hooks): assert() that both ap_pregcomp() calls succeed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1934969 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_xml2enc.c b/modules/filters/mod_xml2enc.c index 8425815d3e..b96cce78f7 100644 --- a/modules/filters/mod_xml2enc.c +++ b/modules/filters/mod_xml2enc.c @@ -604,6 +604,7 @@ static void xml2enc_hooks(apr_pool_t* pool) AP_REG_EXTENDED|AP_REG_ICASE) ; seek_charset = ap_pregcomp(pool, "charset=([A-Za-z0-9_-]+)", AP_REG_EXTENDED|AP_REG_ICASE) ; + ap_assert(seek_meta_ctype && seek_charset); } static const char* set_alias(cmd_parms* cmd, void* CFG, const char* charset, const char* alias)