From 766fee175b36f676ec4173adaa67fc676170e7d4 Mon Sep 17 00:00:00 2001 From: orbisai0security Date: Fri, 24 Jul 2026 18:11:25 +0000 Subject: [PATCH] fix: V-001 security vulnerability Automated security fix generated by OrbisAI Security --- worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker.js b/worker.js index f79126102..b320898c6 100644 --- a/worker.js +++ b/worker.js @@ -91,7 +91,7 @@ function getFormatTime(time) { async function diypHandle(channel, date, request) { const tag = date.replaceAll('-', '.'); // https://github.com/celetor/epg/releases/download/2024.02.14/112114.json - const res = await jq_fetch(new Request(`https://github.com/${Config.repository}/releases/download/${tag}/${Config.branch}.json`, request)); + const res = await jq_fetch(new Request(`https://github.com/${Config.repository}/releases/download/${tag}/${Config.branch}.json`)); const response = await res.json(); console.log(channel, date); @@ -131,7 +131,7 @@ async function fetchHandler(event) { let channel = uri.searchParams.get("ch"); if (!channel || channel.length === 0) { const xml_res = await jq_fetch(new Request( - `https://github.com/${Config.repository}/releases/latest/download/${Config.branch}.xml`, request + `https://github.com/${Config.repository}/releases/latest/download/${Config.branch}.xml` )); const xml_blob = await xml_res.blob(); init['headers']['content-type'] = 'text/xml';