Skip to content

Commit

Permalink
Fixes Zope-797 (improper encoding of the WebDAV displayname property) (
Browse files Browse the repository at this point in the history
…#798)

* Fixes Zope-797 (improper encoding of the WebDAV displayname property)

* note on fix for #799

* fixed improper bug reference
  • Loading branch information
dataflake committed Mar 5, 2020
1 parent 15c1ed6 commit 85a7fbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGES.rst
Expand Up @@ -25,7 +25,9 @@ New features
Bug fixes
+++++++++

- None, yet.
- Fixed encoding issue of `displayname` WebDAV property
(`#478 <https://github.com/zopefoundation/Zope/issues/797>`_)


Other changes
+++++++++++++
Expand Down
3 changes: 1 addition & 2 deletions src/webdav/PropertySheets.py
Expand Up @@ -32,8 +32,7 @@ def xml_escape(value):
value = str(value)
if not isinstance(value, str):
value = value.decode('utf-8')
value = xmltools_escape(value)
return value.encode('utf-8')
return xmltools_escape(value)


class DAVProperties(Virtual, PropertySheet, View):
Expand Down

0 comments on commit 85a7fbc

Please sign in to comment.