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
11a5404a
Commit
11a5404a
authored
May 11, 2009
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Launchpad #374729: Encoding cookie values to avoid issues with
firewalls and security proxies.
parent
0da54750
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
doc/CHANGES.rst
doc/CHANGES.rst
+4
-1
src/ZPublisher/HTTPRequest.py
src/ZPublisher/HTTPRequest.py
+1
-1
src/ZPublisher/HTTPResponse.py
src/ZPublisher/HTTPResponse.py
+2
-1
No files found.
doc/CHANGES.rst
View file @
11a5404a
...
...
@@ -23,8 +23,11 @@ Restructuring
Features Added
++++++++++++++
- Launchpad #374729: Encoding cookie values to avoid issues with
firewalls and security proxies.
- Launchpad #374719: introducing new ZPublisher events:
PubStart, PubSuccess, PubFailure, PubAfterTraversal and PubBeforeCommit
PubStart, PubSuccess, PubFailure, PubAfterTraversal and PubBeforeCommit
.
- Launchpad #373583: ZODBMountPoint - fixed broken mount support and
extended the test suite.
...
...
src/ZPublisher/HTTPRequest.py
View file @
11a5404a
...
...
@@ -1684,7 +1684,7 @@ def parse_cookie(text,
release
()
if
not
already_have
(
name
):
result
[
name
]
=
value
result
[
name
]
=
unquote
(
value
)
return
apply
(
parse_cookie
,(
text
[
l
:],
result
))
...
...
src/ZPublisher/HTTPResponse.py
View file @
11a5404a
...
...
@@ -23,6 +23,7 @@ from zExceptions import Unauthorized, Redirect
from
zExceptions.ExceptionFormatter
import
format_exception
from
ZPublisher
import
BadRequest
,
InternalError
,
NotFound
from
cgi
import
escape
from
urllib
import
quote
nl2sp
=
maketrans
(
'
\
n
'
,
' '
)
...
...
@@ -842,7 +843,7 @@ class HTTPResponse(BaseResponse):
# quoted cookie attr values, so only the value part
# of name=value pairs may be quoted.
cookie = '
Set
-
Cookie
:
%
s
=
"%s"' % (name,
attrs['
value
']
)
cookie = '
Set
-
Cookie
:
%
s
=
"%s"' % (name,
quote(attrs['
value
'])
)
for name, v in attrs.items():
name = name.lower()
if name == '
expires
':
...
...
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