From 3f3a1a90112c17df1ff474a56ffb4632697b4e8a Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 15 Sep 2019 17:45:24 +0100 Subject: [PATCH] do not double-encode paste code --- paste/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paste/index.php b/paste/index.php index 0e1d248..92b66b9 100644 --- a/paste/index.php +++ b/paste/index.php @@ -47,7 +47,7 @@ else if (! empty($_POST["paste_text"])) die("Spam bot detected, get out of here!"); } - $paste_code = htmlspecialchars($_POST["paste_text"]); + $paste_code = $_POST["paste_text"]; $paste_format = htmlspecialchars($_POST["paste_format"]); $paste_name = htmlspecialchars($_POST["paste_title"]); $paste_pass = htmlspecialchars($_POST["paste_password"]);