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
0b1bdf0e
Commit
0b1bdf0e
authored
Nov 11, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a fix for controlling the "secure" attribute of cookies.
parent
4ca4d3cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/ZPublisher/HTTPResponse.py
lib/python/ZPublisher/HTTPResponse.py
+3
-3
No files found.
lib/python/ZPublisher/HTTPResponse.py
View file @
0b1bdf0e
...
...
@@ -84,8 +84,8 @@
##############################################################################
'''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.2
3 1999/11/03 19:24:45 sroberts
Exp $'''
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
$Id: HTTPResponse.py,v 1.2
4 1999/11/11 16:45:39 brian
Exp $'''
__version__
=
'$Revision: 1.2
4
$'
[
11
:
-
2
]
import
string
,
types
,
sys
,
regex
from
string
import
find
,
rfind
,
lower
,
upper
,
strip
,
split
,
join
,
translate
...
...
@@ -658,7 +658,7 @@ class HTTPResponse(BaseResponse):
elif
name
==
'path'
:
cookie
=
'%s; Path=%s'
%
(
cookie
,
v
)
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
==
'secure'
and
v
:
cookie
=
'%s; Secure'
%
cookie
cookie_list
.
append
(
cookie
)
# Should really check size of cookies here!
...
...
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