httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56287] New: mod_proxy_html deletes wrong data from HTML when meta http-equiv tag specifies Content-Type behind other meta http-equiv tag
Date Wed, 19 Mar 2014 21:01:59 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56287

            Bug ID: 56287
           Summary: mod_proxy_html deletes wrong data from HTML when meta
                    http-equiv tag specifies Content-Type behind other
                    meta http-equiv tag
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_html
          Assignee: bugs@httpd.apache.org
          Reporter: micha@lenk.info

Created attachment 31410
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31410&action=edit
Fix offset in metafix code

mod_proxy_html deletes the wrong data from HTML code when a "http-equiv" meta
tag specifies a Content-Type behind any other "http-equiv" meta tag. For better
understanding of the issue, please consider the following HTML code (also
attached as file metafix-breaker.html) treated by mod_proxy_html:

<html>
 <head>
  <meta http-equiv="X-Dummy-Header" content="dummy value">
  <style type="text/css">div.ok { color: green; }       </style>
  <meta http-equiv="Content-Type" content="text/html; charset=utf8"      >
 <head>
 <body>
  <div class="ok">If the metafix is not broken, this text should get rendered
in green color.</div>
 </body>
</html>

Without the attached patch, mod_proxy_html will remove the <style> tag inside
the <head> tag as soon as it parses the meta tag with the
http-equiv="Content-Type" attribute. With the attached patch applied,
mod_proxy_html removes the meta tag with the http-equiv="Content-Type"
attribute instead. I guess this is what the code intended to do.

The attached patch is based on httpd trunk, rev. 1579365.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message