From 4025f29b8ad8bfef88c86eb194eb2bbf7d222474 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 22 Oct 2008 10:10:56 -0700 Subject: [PATCH] web/info.py: fix 'Check This Object' link, for files it was checking the parent directory by mistake --- src/allmydata/web/info.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/allmydata/web/info.py b/src/allmydata/web/info.py index df4c5250..ff03dadf 100644 --- a/src/allmydata/web/info.py +++ b/src/allmydata/web/info.py @@ -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"), -- 2.45.2