From e4c4bbaad77286871802c8fb816461b5d51e9885 Mon Sep 17 00:00:00 2001 From: Steven Tracey Date: Tue, 19 Dec 2023 09:29:32 -0600 Subject: [PATCH] URL Encode info --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index d07b2c8..484a9bf 100644 --- a/app.js +++ b/app.js @@ -21,7 +21,7 @@ function generateQuickCmd() { fetch("https://paste.nevets.tech/api/", { method: "POST", headers: {'Content-Type': 'application/json'}, - body: "{'format':'url','content':'" + buildCmd() + "','expires':3600,'lexer':'bash'}", + body: "{'format':'url','content':'" + encodeURIComponent(buildCmd()) + "','expires':3600,'lexer':'bash'}", mode: "cors" }).then(res => res.json().then(json => { document.getElementById("script").innerText = "curl -s " + json.url + "/raw | bash";