fix(security): harden URL and HTML sanitization

This commit is contained in:
RhenCloud committed 2026-10-24 16:41:29 +08:00
1 parent 978c53eeb3
commit c07741bf54
6 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -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: [
{