mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-29 17:28:53 +00:00
web/info.py: fix 'Check This Object' link, for files it was checking the parent directory by mistake
This commit is contained in:
parent
0129e9931f
commit
4025f29b8a
@ -131,7 +131,12 @@ class MoreInfo(rend.Page):
|
||||
return ""
|
||||
|
||||
def render_check_form(self, ctx, data):
|
||||
check = T.form(action=".", method="post",
|
||||
node = self.original
|
||||
quoted_uri = urllib.quote(node.get_uri())
|
||||
target = self.get_root(ctx) + "/uri/" + quoted_uri
|
||||
if IDirectoryNode.providedBy(node):
|
||||
target += "/"
|
||||
check = T.form(action=target, method="post",
|
||||
enctype="multipart/form-data")[
|
||||
T.fieldset[
|
||||
T.input(type="hidden", name="t", value="check"),
|
||||
|
Loading…
Reference in New Issue
Block a user