From 0734aa61bbac4209a70f95f1e59b02750aa9ce3c Mon Sep 17 00:00:00 2001 From: Bram Verboom <33070319+BramVerb@users.noreply.github.com> Date: Thu, 18 Jun 2020 20:18:54 +0200 Subject: [PATCH] Disallow repeated redirects --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 1b95e52..1c3ebd1 100644 --- a/index.js +++ b/index.js @@ -56,7 +56,7 @@ app.post('/url', slowDown({ slug, url, }); - if (url.includes('cdg.sh')) { + if (url.toLowerCase().includes('cdg.sh')) { throw new Error('Stop it. 🛑'); } if (!slug) {