From 372cc00a25d91c0e4076092d86da7d615b03645d Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Fri, 17 Jul 2020 09:46:21 -0400 Subject: [PATCH] Reject non-existent child nodes of /status Requests on both `/status` and `/status/` will be served with the same status page, but `/status//`, `/status///` and so on will be processed further down, resulting in a 40x response. --- src/allmydata/web/status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/web/status.py b/src/allmydata/web/status.py index 39b19cb0b..2c19c45dd 100644 --- a/src/allmydata/web/status.py +++ b/src/allmydata/web/status.py @@ -1214,7 +1214,7 @@ class Status(MultiFormatResource): # final URL segment will be an empty string. Resources can # thus know if they were requested with or without a final # slash." - if not path: + if not path and request.postpath != ['']: return self h = self.history