]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Do not delete the wrong data from HTML code when a "http-equiv" meta tag specifies...
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 4 Apr 2014 19:59:06 +0000 (19:59 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 4 Apr 2014 19:59:06 +0000 (19:59 +0000)
PR 56287 [Micha Lenk <micha lenk info>]

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

CHANGES
modules/filters/mod_proxy_html.c

diff --git a/CHANGES b/CHANGES
index 7f2337fdac95178c0498fe1da3b12133df2228e8..7be717ea1f01f0062f0b0af5dc15cfcb50187989 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_proxy_html: Do not delete the wrong data from HTML code when a
+     "http-equiv" meta tag specifies a Content-Type behind any other
+     "http-equiv" meta tag. PR 56287 [Micha Lenk <micha lenk info>]
+
   *) mod_expires: don't add Expires header to error responses (4xx/5xx),
      be they generated or forwarded. PR 55669. [ Yann Ylavic ]
 
index 523c0bf4f5c4e62c6257e464ec921332167dcc86..081f37122a5d64b39761ef10457fcfddf35a0949 100644 (file)
@@ -688,8 +688,8 @@ static meta *metafix(request_rec *r, const char *buf)
         }
         else if (!strncasecmp(header, "Content-Type", 12)) {
             ret = apr_palloc(r->pool, sizeof(meta));
-            ret->start = pmatch[0].rm_so;
-            ret->end = pmatch[0].rm_eo;
+            ret->start = offs+pmatch[0].rm_so;
+            ret->end = offs+pmatch[0].rm_eo;
         }
         if (header && content) {
 #ifndef GO_FASTER