Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
d3ba835f
Commit
d3ba835f
authored
Mar 13, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of exception in case of a bad cookie attribute.
parent
88a55fbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/python/ZPublisher/Response.py
lib/python/ZPublisher/Response.py
+5
-5
No files found.
lib/python/ZPublisher/Response.py
View file @
d3ba835f
...
...
@@ -3,7 +3,7 @@
__doc__
=
'''CGI Response Output formatter
$Id: Response.py,v 1.2
7 1998/03/13 21:30:23 brian
Exp $'''
$Id: Response.py,v 1.2
8 1998/03/13 22:13:35 jim
Exp $'''
# Copyright
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...
...
@@ -53,7 +53,7 @@ $Id: Response.py,v 1.27 1998/03/13 21:30:23 brian Exp $'''
# Digital Creations, info@Digicool.com
# (540) 371-6909
#
__version__
=
'$Revision: 1.2
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
8
$'
[
11
:
-
2
]
import
string
,
types
,
sys
,
regex
,
regsub
from
string
import
find
,
rfind
,
lower
,
upper
,
strip
,
split
,
join
...
...
@@ -502,9 +502,9 @@ class Response:
elif
name
==
'max_age'
:
cookie
=
'%s; Max-Age="%s"'
%
(
cookie
,
v
)
elif
name
==
'comment'
:
cookie
=
'%s; Comment="%s"'
%
(
cookie
,
v
)
elif
name
==
'secure'
:
cookie
=
'%s; Secure'
%
cookie
elif
name
!=
'value'
:
raise
ValueError
,
(
'Invalid cookie attribute, <em>%s</em>'
%
name
)
#
elif name!='value':
#
raise ValueError, (
#
'Invalid cookie attribute, <em>%s</em>' % name)
cookie_list
.
append
(
cookie
)
return
cookie_list
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment