From e1c94991838feb897f2623b7758b181629f55510 Mon Sep 17 00:00:00 2001 From: Nick Kew Date: Sat, 16 Dec 2017 22:05:01 +0000 Subject: 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 --- CHANGES | 3 +++ modules/filters/mod_proxy_html.c | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGES b/CHANGES index af35966b7d..4bccfd0149 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, -- cgit v1.2.3