mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
fix(security): harden URL and HTML sanitization
This commit is contained in:
6 files changed
+9
-6
No files matched your search
@@ -330,7 +330,7 @@ describe("telegram-commands refusals and whitespace", () => {
|
||||
let replies = 0;
|
||||
let github = 0;
|
||||
mockFetch((url) => {
|
||||
if (url.includes("api.github.com")) github++;
|
||||
if (new URL(url).hostname === "api.github.com") github++;
|
||||
replies++;
|
||||
return new Response(JSON.stringify({ ok: false, description: "Bad Gateway" }), {
|
||||
status: 502,
|
||||
|
||||
Reference in new issue
Block a user