From ab5722cff97c29006a6e35ac523d75eb2ee313b0 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 4 Mar 2023 16:31:49 +0000 Subject: [PATCH] add atob owo --- src/libpoketube/init/pages-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpoketube/init/pages-api.js b/src/libpoketube/init/pages-api.js index cee9161a..67b4b42f 100644 --- a/src/libpoketube/init/pages-api.js +++ b/src/libpoketube/init/pages-api.js @@ -137,7 +137,7 @@ module.exports = function (app, config, renderTemplate) { }); app.get("/api/redirect", async (req, res) => { - const red_url = req.query.u; + const red_url = atob(req.query.u); if (!red_url) { res.redirect("/");