You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andrew Schulman <an...@alumni.utexas.net> on 2010/07/06 10:34:44 UTC

[users@httpd] mod_proxy_html: strange mangled output

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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org