mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-20 03:36:25 +00:00
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.
This commit is contained in:
parent
fe165cc99d
commit
372cc00a25
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user