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
  • Loading branch information
zopyx committed Mar 5, 2020
1 parent 15c1ed6 commit 5169841
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/webdav/PropertySheets.py
Original file line number Diff line number Diff line change
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 5169841

Please sign in to comment.