https://issues.apache.org/bugzilla/show_bug.cgi?id=56288

            Bug ID: 56288
           Summary: rewrite URLs in style attributes
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_proxy_html
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 31412
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31412&action=edit
Rewrite URLs in HTML style attributes too

In HTML you can have <div> tags that have a background image by providing a
style attribute. E.g. this can be done by something fancy like this:

<div style="background:url(http://www.example.com/fancy-background.png) right
0px no-repeat; height:325px;">

Currently mod_proxy_html doesn't rewrite the URL in such style attributes.

The attached patch tries to fix that by applying the configured string
replacements also on style attributes.

Additionally it tries to make the code a bit more readable by renaming the
function dump_content() to apply_urlmap(). This is what it actually does,
especially after the call to AP_fwrite() has been moved outside of this
function.

Please note that this patch requires the patch from issue #56284 to be applied
first. Otherwise the last chunk will not apply.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to