Commit ea56b755 authored by Tammo Ronke's avatar Tammo Ronke

v23424324wer32vsdfsdfr

parent 47f65a7d
......@@ -99,6 +99,8 @@ server.get("/redirect/:address/:url", (req, res, next) => {
try {
var address = atob(req.params.address);
var url = atob(req.params.url);
} catch (ex) {
console.log("Not base64 encoded!");
}
if (url && address) {
bot.loadSession(address, (error, session) => {
......@@ -118,7 +120,5 @@ server.get("/redirect/:address/:url", (req, res, next) => {
res.writeHead(200);
res.send(`<script>window.location = '${url}';</script>`);
next();
}else{
console.log("Not base64 encoded!");
}
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment