diff --git a/frontend/src/composables/useMarked.ts b/frontend/src/composables/useMarked.ts index 37af13f4..d27b7578 100644 --- a/frontend/src/composables/useMarked.ts +++ b/frontend/src/composables/useMarked.ts @@ -78,7 +78,6 @@ const renderer = { } }, link({ href, title, tokens }) { - console.log("link", href, title, tokens, linkout(href)); return `` : ">") + this.parser?.parseInline(tokens) + "DUM"; }, } satisfies Partial; diff --git a/frontend/src/composables/useUrlHelper.ts b/frontend/src/composables/useUrlHelper.ts index 80450a9e..b4d234f3 100644 --- a/frontend/src/composables/useUrlHelper.ts +++ b/frontend/src/composables/useUrlHelper.ts @@ -9,31 +9,24 @@ const isSafeHost = (host: string) => { }; const isSafe = (urlString: string) => { - console.log("safe?", urlString, useBackendData.security.safeDownloadHosts); if (!urlString) { - console.log("1"); return false; } if (urlString.startsWith("#") || urlString.startsWith("/")) { - console.log("2"); return true; } try { const url = new URL(urlString); const host = url.hostname; if (url.protocol?.startsWith("mailto")) { - console.log("3"); return true; } else if (!host || isSafeHost(host)) { - console.log("4"); return true; } } catch { - console.log("5"); return false; } - console.log("6"); return false; };