mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-20 11:39:49 +00:00
Feature: add gitea widget (#2968)
This commit is contained in:
parent
291bf422f9
commit
fce694e2b9
8 changed files with 81 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue