mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 11:24:25 +00:00
Handle just POST requests in IncidentReporter
This commit is contained in:
parent
497a832ad9
commit
15131a9f71
@ -173,6 +173,9 @@ class IncidentReporter(MultiFormatResource):
|
||||
"""Handler for /report_incident POST request"""
|
||||
|
||||
def render(self, req):
|
||||
if req.method != "POST":
|
||||
raise WebError("/report_incident can only be used with POST")
|
||||
|
||||
log.msg(format="User reports incident through web page: %(details)s",
|
||||
details=get_arg(req, "details", ""),
|
||||
level=log.WEIRD, umid="LkD9Pw")
|
||||
|
Loading…
x
Reference in New Issue
Block a user