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
922f6682
Commit
922f6682
authored
Sep 09, 1999
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in FTP cookie authentication.
parent
d1f544be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
ZServer/FTPRequest.py
ZServer/FTPRequest.py
+3
-2
lib/python/ZServer/FTPRequest.py
lib/python/ZServer/FTPRequest.py
+3
-2
No files found.
ZServer/FTPRequest.py
View file @
922f6682
...
@@ -110,11 +110,12 @@ class FTPRequest(HTTPRequest):
...
@@ -110,11 +110,12 @@ class FTPRequest(HTTPRequest):
# support for cookies and cookie authentication
# support for cookies and cookie authentication
self
.
cookies
=
channel
.
cookies
self
.
cookies
=
channel
.
cookies
if
not
self
.
cookies
.
has_key
(
'__ac'
)
and
channel
.
userid
!=
'anonymous'
:
if
not
self
.
cookies
.
has_key
(
'__ac'
)
and
channel
.
userid
!=
'anonymous'
:
self
.
cookies
[
'__ac'
]
=
encodestring
(
'%s:%s'
%
self
.
other
[
'__ac_name'
]
=
channel
.
userid
(
channel
.
userid
,
channel
.
password
))
self
.
other
[
'__ac_password'
]
=
channel
.
password
for
k
,
v
in
self
.
cookies
.
items
():
for
k
,
v
in
self
.
cookies
.
items
():
if
not
self
.
other
.
has_key
(
k
):
if
not
self
.
other
.
has_key
(
k
):
self
.
other
[
k
]
=
v
self
.
other
[
k
]
=
v
def
retry
(
self
):
def
retry
(
self
):
self
.
retry_count
=
self
.
retry_count
+
1
self
.
retry_count
=
self
.
retry_count
+
1
...
...
lib/python/ZServer/FTPRequest.py
View file @
922f6682
...
@@ -110,11 +110,12 @@ class FTPRequest(HTTPRequest):
...
@@ -110,11 +110,12 @@ class FTPRequest(HTTPRequest):
# support for cookies and cookie authentication
# support for cookies and cookie authentication
self
.
cookies
=
channel
.
cookies
self
.
cookies
=
channel
.
cookies
if
not
self
.
cookies
.
has_key
(
'__ac'
)
and
channel
.
userid
!=
'anonymous'
:
if
not
self
.
cookies
.
has_key
(
'__ac'
)
and
channel
.
userid
!=
'anonymous'
:
self
.
cookies
[
'__ac'
]
=
encodestring
(
'%s:%s'
%
self
.
other
[
'__ac_name'
]
=
channel
.
userid
(
channel
.
userid
,
channel
.
password
))
self
.
other
[
'__ac_password'
]
=
channel
.
password
for
k
,
v
in
self
.
cookies
.
items
():
for
k
,
v
in
self
.
cookies
.
items
():
if
not
self
.
other
.
has_key
(
k
):
if
not
self
.
other
.
has_key
(
k
):
self
.
other
[
k
]
=
v
self
.
other
[
k
]
=
v
def
retry
(
self
):
def
retry
(
self
):
self
.
retry_count
=
self
.
retry_count
+
1
self
.
retry_count
=
self
.
retry_count
+
1
...
...
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