Feature: add gitea widget (#2968)

This commit is contained in:
shamoon 2024-02-21 00:41:21 -08:00
parent 291bf422f9
commit fce694e2b9
8 changed files with 81 additions and 1 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"].forEach((key) => {
["apikey", "api_key", "token", "t", "access_token"].forEach((key) => {
if (url.searchParams.has(key)) url.searchParams.set(key, "***");
});
return url.toString();