Bug 56992 - mod_proxy_html does not parse style attribute
Summary: mod_proxy_html does not parse style attribute
Status: RESOLVED DUPLICATE of bug 56288
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy_html (show other bugs)
Version: 2.4.6
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2014-09-18 13:20 UTC by Raffael Luthiger
Modified: 2014-09-18 14:44 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Raffael Luthiger 2014-09-18 13:20:33 UTC
I have here a very strange problem with mod_proxy_html which I think is a bug. The HTML code which gets parsed looks like this:

<a href="/old/something.html" style="background-image:url('/old/images/background.png')">link</a>

Our configuration looks like this:

ProxyPass /  ajp://localhost:9000/webapp/
<Location />
SetOutputFilter INFLATE;proxy-html;DEFLATE
ProxyPassReverse /
ProxyHTMLExtended On

ProxyHTMLURLMap /old/ /new/

RequestHeader unset Accept-Encoding

And in the module config file I added this:

ProxyHTMLLinks  a               href style

From my understanding this should now filter the HREF and the STYLE attribute. But it only filters the HREF.

Either the documentation is not clear enough or there is really a bug in the software.

I tested it with httpd version 2.4.6 which was coming with CentOS7. I checked the change logs and there seems to be no changes regarding this up to 2.4.10.
Comment 1 Christophe JAILLET 2014-09-18 14:44:32 UTC

*** This bug has been marked as a duplicate of bug 56288 ***