some rce prevention

This commit is contained in:
unknown 2023-03-05 17:17:31 +01:00
parent 206cf431f7
commit 361dba2197
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ exports.save = async (ws, req) => {
async function startDownloading() { async function startDownloading() {
ws.send('INFO - Spawning yt-dlp!') ws.send('INFO - Spawning yt-dlp!')
const download = await ytdlp.downloadVideo(req.query.url, ws) const download = await ytdlp.downloadVideo(`https://www.youtube.com/watch?v=${id}`, ws)
if (download.fail) { if (download.fail) {
await redis.del(id) await redis.del(id)
ws.send(`DATA - ${download.message}`) ws.send(`DATA - ${download.message}`)