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
dd51a808
Commit
dd51a808
authored
May 27, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added url quoting to href tags in propfind and proppatch responses.
parent
ba244bc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lib/python/webdav/davcmds.py
lib/python/webdav/davcmds.py
+4
-3
No files found.
lib/python/webdav/davcmds.py
View file @
dd51a808
...
@@ -85,13 +85,14 @@
...
@@ -85,13 +85,14 @@
"""WebDAV xml request objects."""
"""WebDAV xml request objects."""
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
regex
import
sys
,
os
,
string
,
regex
from
common
import
absattr
,
aq_base
,
urlfix
,
urlbase
from
common
import
absattr
,
aq_base
,
urlfix
,
urlbase
from
OFS.PropertySheets
import
DAVProperties
from
OFS.PropertySheets
import
DAVProperties
from
xmltools
import
XmlParser
from
xmltools
import
XmlParser
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
from
urllib
import
quote
class
DAVProps
(
DAVProperties
):
class
DAVProps
(
DAVProperties
):
...
@@ -155,7 +156,7 @@ class PropFind:
...
@@ -155,7 +156,7 @@ class PropFind:
'<d:multistatus xmlns:d="DAV:">
\
n
'
)
'<d:multistatus xmlns:d="DAV:">
\
n
'
)
iscol
=
hasattr
(
obj
,
'__dav_collection__'
)
iscol
=
hasattr
(
obj
,
'__dav_collection__'
)
if
iscol
and
url
[
-
1
]
!=
'/'
:
url
=
url
+
'/'
if
iscol
and
url
[
-
1
]
!=
'/'
:
url
=
url
+
'/'
result
.
write
(
'<d:response>
\
n
<d:href>%s</d:href>
\
n
'
%
url
)
result
.
write
(
'<d:response>
\
n
<d:href>%s</d:href>
\
n
'
%
quote
(
url
)
)
if
hasattr
(
aq_base
(
obj
),
'propertysheets'
):
if
hasattr
(
aq_base
(
obj
),
'propertysheets'
):
propsets
=
obj
.
propertysheets
.
values
()
propsets
=
obj
.
propertysheets
.
values
()
obsheets
=
obj
.
propertysheets
obsheets
=
obj
.
propertysheets
...
@@ -273,7 +274,7 @@ class PropPatch:
...
@@ -273,7 +274,7 @@ class PropPatch:
result
.
write
(
'<?xml version="1.0" encoding="utf-8"?>
\
n
'
\
result
.
write
(
'<?xml version="1.0" encoding="utf-8"?>
\
n
'
\
'<d:multistatus xmlns:d="DAV:">
\
n
'
\
'<d:multistatus xmlns:d="DAV:">
\
n
'
\
'<d:response>
\
n
'
\
'<d:response>
\
n
'
\
'<d:href>%s</d:href>
\
n
'
%
url
)
'<d:href>%s</d:href>
\
n
'
%
quote
(
url
)
)
propsets
=
obj
.
propertysheets
propsets
=
obj
.
propertysheets
for
value
in
self
.
values
:
for
value
in
self
.
values
:
status
=
'200 OK'
status
=
'200 OK'
...
...
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