[Zope-dev] the mad cookie (tm), and a bug with IE 3.x

Service Informatique CHSR chsrinfo@guetali.fr
Fri, 12 Mar 1999 10:09:28 +0400


Message en plusieurs parties et au format MIME.

------=_NextPart_000_008D_01BE6C70.6A080500
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hello,

In the story "track them all down", two other examples of harcoded expiring
date for cookies:
lib/python/OFS/DTMLMethod.py
lib/python/Shared/ZRDB/DA.py

I wonder... in lib/python/Products/OFSP/Session.py, the expiring date
for the cookie is commented out. According to the specs, this mean that
the cookie expires when you close the browser. Does this mean that
a session last only until the browser is closed? The information about
the open session must be stored elsewhere.

IE 3.x has a bug in the handling of TEXTAREA tag: *everything* that is
between <textarea> and </textarea> belongs to the field.
lib/python/OFS/documentEdit.dtml reads:

<textarea /* various stuff deleted */>
<!--#var __str__--></textarea>

An extra line is added to anything being edited. So it should be written:

<textarea /* various stuff deleted */><!--#var __str__--></textarea>

For the lazy ones, a patch is included.

Regards, Jephte CLAIN
Service Informatique CHSR


------=_NextPart_000_008D_01BE6C70.6A080500
Content-Type: application/octet-stream;
	name="documentEdit.dtml.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="documentEdit.dtml.patch"

LS0tIGRvY3VtZW50RWRpdC5kdG1sLm9yaWcJVGh1IE1hciAxMSAxMjowMDoyMiAxOTk5CisrKyBk
b2N1bWVudEVkaXQuZHRtbAlUaHUgTWFyIDExIDEyOjAxOjA2IDE5OTkKQEAgLTQ5LDggKzQ5LDcg
QEAKIAlST1dTPSI8IS0tI3ZhciBkdHByZWZfcm93cy0tPiIKIAk8IS0tI2Vsc2UgZHRwcmVmX3Jv
d3MtLT4KIAlST1dTPSIyMCIKLQk8IS0tIy9pZiBkdHByZWZfcm93cy0tPj4KLTwhLS0jdmFyIF9f
c3RyX18tLT48L1RFWFRBUkVBPgorCTwhLS0jL2lmIGR0cHJlZl9yb3dzLS0+PjwhLS0jdmFyIF9f
c3RyX18tLT48L1RFWFRBUkVBPgogCTwvVEQ+CiAgICAgICA8L1RSPgogICAgICAgPFRSPgo=

------=_NextPart_000_008D_01BE6C70.6A080500--