[ZCM] [ZC] 799/ 1 Request "dtml-tree p_/pl p_/mi URLs sometimes borked"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin@zope.org
Sat, 08 Feb 2003 21:31:16 -0500


Issue #799 Update (Request) "dtml-tree p_/pl p_/mi URLs sometimes borked"
 Status Pending, Zope/bug+solution low
To followup, visit:
  http://collector.zope.org/Zope/799

==============================================================
= Request - Entry #1 by leper on Feb 8, 2003 9:31 pm


Uploaded:  "bp1notsn.diff"
 - http://collector.zope.org/Zope/799/bp1notsn.diff/view
When using zope through a proxy and the base paths don't
match dtml-tree's p_/pl and p_/mi images will have incorrect
src URLs.  This is because the dtml-tree code still uses
SCRIPT_NAME to obtain its base path for those images.
As BASEPATH1 is "virtual host friendly" where SCRIPT_NAME
isn't; here is a very simple patch that fixes the
problem.

==============================================================