mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-02 03:06:41 +00:00
fix name decoding
This commit is contained in:
parent
66f392f7d0
commit
dc4669b5e7
@ -111,9 +111,10 @@ class DirectoryNodeHandler(ReplaceMeMixin, Resource, object):
|
|||||||
# for these nodes, which is that a URI like
|
# for these nodes, which is that a URI like
|
||||||
# "/uri/URI%3ADIR2%3Aj...vq/" (that is, with a trailing slash
|
# "/uri/URI%3ADIR2%3Aj...vq/" (that is, with a trailing slash
|
||||||
# or no further children) renders "this" page
|
# or no further children) renders "this" page
|
||||||
|
name = name.decode('utf8')
|
||||||
if not name:
|
if not name:
|
||||||
return self
|
return self
|
||||||
d = self.node.get(name.decode('utf8'))
|
d = self.node.get(name)
|
||||||
d.addBoth(self._got_child, req, name)
|
d.addBoth(self._got_child, req, name)
|
||||||
return d
|
return d
|
||||||
|
|
||||||
@ -121,8 +122,6 @@ class DirectoryNodeHandler(ReplaceMeMixin, Resource, object):
|
|||||||
"""
|
"""
|
||||||
Callback when self.node.get has returned
|
Callback when self.node.get has returned
|
||||||
"""
|
"""
|
||||||
import six
|
|
||||||
name = six.u(name)
|
|
||||||
method = req.method
|
method = req.method
|
||||||
nonterminal = len(req.postpath) > 1
|
nonterminal = len(req.postpath) > 1
|
||||||
t = get_arg(req, "t", "").strip() # XXX looking like MultiFormatResource..
|
t = get_arg(req, "t", "").strip() # XXX looking like MultiFormatResource..
|
||||||
|
Loading…
Reference in New Issue
Block a user