[Zope-dev] Annoying data interference bug

Bill Anderson bill.anderson@libc.org
Mon, 14 Feb 2000 21:35:23 -0700


OK, this is getting really annoying.

I am modifying the BannerFolder Product to use local and remote banners.
In doing so, I added a property called link_code (string), and one
called local (boolean) to the Banner object. The trick is, when the
banner is rendered, it looks at local; if local is true, it builds the
HTMl like normal. If local is false, it simply returns the link_url
field.

Easy enough, and mostly works. Mostly.

However, the breakage is really, really wierd.
given the following:
link_url: 
<a href="http://www.foo.com/somepage"><img
src="http://www.foo.com/adimages/?image=foo1></a>
local:1

I should see the contents of link_url.
What I really get is:
<a href="http://www.foo.com/somepage"><img
src="http://www.libc.org/hbanner/http://www.foo.com/adimages/?image=foo1></a>

What in the world could be causing this? I don't do _anything_ with the
contents of link_code; I only return them. I could almost understand it
if it put the extra "http://www.libc.org/hbanner/" in fornt of the whole
thing, but not only ion the img tag.

Help? Please?

Bill



-- 
In flying I have learned that carelessness and overconfidence are 
usually far more dangerous than deliberately accepted risks. 
          -- Wilbur Wright in a letter to his father, September 1900