From: Nick Kew Date: Sat, 16 Dec 2017 22:05:01 +0000 (+0000) Subject: mod_proxy_html: fix metafix handling of elements X-Git-Tag: 2.5.0-alpha2-ci-test-only~3069 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1c94991838feb897f2623b7758b181629f55510;p=thirdparty%2Fapache%2Fhttpd.git mod_proxy_html: fix metafix handling of elements PR#58121 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1818457 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index af35966b7df..4bccfd0149b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.1 + *) mod_proxy_html: fix handling of elements. + PR 58121. [Nick Kew] + *) mod_md: fixed backward compatibility to old pool, p, q-p); - if (ap_cstr_casecmpn(header, "Content-", 8)) { + if (!ap_cstr_casecmpn(header, "Content-Type", 12)) { + ret = apr_palloc(r->pool, sizeof(meta)); + ret->start = offs+pmatch[0].rm_so; + ret->end = offs+pmatch[0].rm_eo; + } + else { /* find content=... string */ p = apr_strmatch(seek_content, buf+offs+pmatch[0].rm_so, pmatch[0].rm_eo - pmatch[0].rm_so); @@ -712,11 +717,6 @@ static meta *metafix(request_rec *r, const char *buf) } } } - else if (!ap_cstr_casecmpn(header, "Content-Type", 12)) { - ret = apr_palloc(r->pool, sizeof(meta)); - ret->start = offs+pmatch[0].rm_so; - ret->end = offs+pmatch[0].rm_eo; - } if (header && content) { #ifndef GO_FASTER ap_log_rerror(APLOG_MARK, APLOG_TRACE2, 0, r,