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
972410ff
Commit
972410ff
authored
Mar 08, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merged fix for double-quoting of DAV:href elements
parent
36fcf02f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lib/python/webdav/davcmds.py
lib/python/webdav/davcmds.py
+7
-2
No files found.
lib/python/webdav/davcmds.py
View file @
972410ff
...
...
@@ -85,7 +85,7 @@
"""WebDAV xml request objects."""
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
regex
from
common
import
absattr
,
aq_base
,
urlfix
,
urlbase
...
...
@@ -98,6 +98,11 @@ from cStringIO import StringIO
from
urllib
import
quote
from
AccessControl
import
getSecurityManager
def
safe_quote
(
url
,
mark
=
r'%'
,
find
=
string
.
find
):
if
find
(
url
,
mark
)
>
-
1
:
return
url
return
quote
(
url
)
class
DAVProps
(
DAVProperties
):
"""Emulate required DAV properties for objects which do
not themselves support properties. This is mainly so
...
...
@@ -159,7 +164,7 @@ class PropFind:
'<d:multistatus xmlns:d="DAV:">
\
n
'
)
iscol
=
hasattr
(
obj
,
'__dav_collection__'
)
if
iscol
and
url
[
-
1
]
!=
'/'
:
url
=
url
+
'/'
result
.
write
(
'<d:response>
\
n
<d:href>%s</d:href>
\
n
'
%
quote
(
url
))
result
.
write
(
'<d:response>
\
n
<d:href>%s</d:href>
\
n
'
%
safe_
quote
(
url
))
if
hasattr
(
aq_base
(
obj
),
'propertysheets'
):
propsets
=
obj
.
propertysheets
.
values
()
obsheets
=
obj
.
propertysheets
...
...
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