🥅 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:
1 parent
07c1d53a44
commit
a441e48906
13 files changed
+103
-193
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user