🥅 Don't return input params in error messages

While we always escape errors in the frontend, other clients or plugins
might not and thus this could cause XSS issues.
This commit is contained in:
Gina Häußge committed 2021-03-09 14:47:43 +01:00
1 parent 07c1d53a44
commit a441e48906
13 files changed
+103 -193

No files matched your search

+1 -1
View File
@@ -94,7 +94,7 @@ class LoggingPlugin(
or is_hidden_path(secure)
or not filename.endswith(".log")
):
return make_response("File not found: %s" % filename, 404)
return make_response("File not found", 404)
os.remove(secure)