Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

[users@httpd] mod_proxy_html: strange mangled output

Andrew Schulman

2010-07-06


Author LoginPost Reply
Hi. mod_proxy_html 3.1.2 with Apache 2.2.3. mod_proxy_html seems to be
mangling the output in some of my HTML links.

My configuration is:

ProxyHTMLLinks a          href
ProxyHTMLLinks area        href
ProxyHTMLLinks base        href
ProxyHTMLLinks blockquote    cite
ProxyHTMLLinks del         cite
ProxyHTMLLinks form        action
ProxyHTMLLinks head        profile
ProxyHTMLLinks iframe       src
ProxyHTMLLinks img         src longdesc usemap
ProxyHTMLLinks input       src usemap
ProxyHTMLLinks ins         cite
ProxyHTMLLinks link        href
ProxyHTMLLinks object       classid codebase data usemap
ProxyHTMLLinks q          cite
ProxyHTMLLinks script       src for

ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \
          onmouseover onmousemove onmouseout onkeypress \
          onkeydown onkeyup onfocus onblur onload \
          onunload onsubmit onreset onselect onchange

AddOutputFilter proxy-html html cgi php

ProxyHTMLInterp  On
ProxyHTMLExtended On
ProxyHTMLDoctype XHTML Legacy
ProxyHTMLLogVerbose Off
SetEnv PROXY_HTML_FORCE On

ProxyHTMLURLMap / /bzr/${BRANCH}/ Vc

For the most part this works as intended, prepending e.g. /bzr/trunk when
BRANCH=trunk onto my absolute link targets. But links in some events are
getting mangled. In particular, the following tag:

<a href="#"
onmouseover="document.map1.src='/echo/mini-redesign/img/map_search_3_2.jpg';
return true">

gets rendered as:

<a href="#"
onmouseover="document.map1.src='/bzr/trunk/echo/min/bzr/trunk/-re/bzr/trunk/esign/img/map_search_3_2.jpg';
return true">

So /bzr/trunk is getting prepended to the link target, which is good, but at the
same time, one instance each of the letters i and d are also getting replaced by
/bzr/trunk. The result is a mangled, broken link.

Any help would be much appreciated. Right now I'm looking into using mod_sed to
rewrite around this problem.

Thanks,
Andrew.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@(protected)
 "  from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.