]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/filters/mod_xml2enc.c (xml2enc_hooks): assert()
authorJoe Orton <jorton@apache.org>
Thu, 4 Jun 2026 08:43:59 +0000 (08:43 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 4 Jun 2026 08:43:59 +0000 (08:43 +0000)
  that both ap_pregcomp() calls succeed.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1934969 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_xml2enc.c

index 8425815d3eb9035f52bcfacd9ae1132396f5e02e..b96cce78f7350869ad521e85bd83b7f4ff11fca4 100644 (file)
@@ -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)