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
@@ -657,7 +657,7 @@ describe("dispatchEvent fallback routing", () => {
|
||||
const sent: string[] = [];
|
||||
const bodies: string[] = [];
|
||||
mockFetch((url, init) => {
|
||||
if (url.includes("api.github.com") && url.includes("/jobs")) {
|
||||
if (new URL(url).hostname === "api.github.com" && url.includes("/jobs")) {
|
||||
return Response.json({
|
||||
jobs: [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user