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
97c934ec
Commit
97c934ec
authored
Feb 15, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed security assertions for copy and move
parent
845509c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lib/python/webdav/Resource.py
lib/python/webdav/Resource.py
+3
-1
No files found.
lib/python/webdav/Resource.py
View file @
97c934ec
...
...
@@ -85,7 +85,7 @@
"""WebDAV support - resource objects."""
__version__
=
'$Revision: 1.
39
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
40
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
mimetypes
,
davcmds
,
ExtensionClass
,
Lockable
from
common
import
absattr
,
aq_base
,
urlfix
,
rfc1123_date
,
tokenFinder
,
urlbase
...
...
@@ -328,6 +328,7 @@ class Resource(ExtensionClass.Base, Lockable.LockableItem):
self
.
dav__init
(
REQUEST
,
RESPONSE
)
raise
'Method Not Allowed'
,
'The resource already exists.'
COPY__roles__
=
(
'Anonymous'
,)
def
COPY
(
self
,
REQUEST
,
RESPONSE
):
"""Create a duplicate of the source resource whose state
and behavior match that of the source resource as closely
...
...
@@ -411,6 +412,7 @@ class Resource(ExtensionClass.Base, Lockable.LockableItem):
RESPONSE
.
setBody
(
''
)
return
RESPONSE
MOVE__roles__
=
(
'Anonymous'
,)
def
MOVE
(
self
,
REQUEST
,
RESPONSE
):
"""Move a resource to a new location. Though we may later try to
make a move appear seamless across namespaces (e.g. from Zope
...
...
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