Fix: some error URLs aren't sanitized (#3385)

This commit is contained in:
shamoon
2024-04-29 17:18:55 -07:00
committed by GitHub
parent daa51f9740
commit ea63716b61
2 changed files with 8 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ export function jsonArrayFilter(data, filter) {
export function sanitizeErrorURL(errorURL) {
// Dont display sensitive params on frontend
const url = new URL(errorURL);
["apikey", "api_key", "token", "t", "access_token"].forEach((key) => {
["apikey", "api_key", "token", "t", "access_token", "auth"].forEach((key) => {
if (url.searchParams.has(key)) url.searchParams.set(key, "***");
});
return url.toString();