[Zope-Checkins] CVS: Zope/lib/python/ZPublisher -
HTTPResponse.py:1.75.2.6
Stefan H. Holek
stefan at epy.co.at
Mon Apr 26 06:11:54 EDT 2004
Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv14785/lib/python/ZPublisher
Modified Files:
Tag: Zope-2_7-branch
HTTPResponse.py
Log Message:
Collector #1160: HTTPResponse.expireCookie() potentially didn't
when an 'expires' keyword argument was passed.
=== Zope/lib/python/ZPublisher/HTTPResponse.py 1.75.2.5 => 1.75.2.6 ===
--- Zope/lib/python/ZPublisher/HTTPResponse.py:1.75.2.5 Mon Jan 19 14:46:45 2004
+++ Zope/lib/python/ZPublisher/HTTPResponse.py Mon Apr 26 06:11:23 2004
@@ -500,10 +500,10 @@
'''
name = str(name)
- dict = {'max_age':0, 'expires':'Wed, 31-Dec-97 23:59:59 GMT'}
- for k, v in kw.items():
- dict[k] = v
- apply(HTTPResponse.setCookie, (self, name, 'deleted'), dict)
+ d = kw.copy()
+ d['max_age'] = 0
+ d['expires'] = 'Wed, 31-Dec-97 23:59:59 GMT'
+ apply(HTTPResponse.setCookie, (self, name, 'deleted'), d)
def setCookie(self,name,value,**kw):
'''\
More information about the Zope-Checkins
mailing list