From 89d19bc4ef524b9bbe7316f85cf48f7a427aea56 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 2 Dec 2016 11:04:48 +0100 Subject: [PATCH] Require password to use pastebin --- paste/index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/paste/index.php b/paste/index.php index 64bbb78..8b6ed7c 100644 --- a/paste/index.php +++ b/paste/index.php @@ -49,6 +49,11 @@ else if (! empty($_POST["paste_text"])) $paste_code = $_POST["paste_text"]; $paste_format = $_POST["paste_format"]; $paste_name = htmlspecialchars($_POST["paste_title"]); + $paste_pass = htmlspecialchars($_POST["paste_password"]); + + if (sha1($paste_pass) != "c3b5562b12495ac3ebaf0970a1fdb02d8823c0b3") { + die("This pastebin is now protected with a password due to users abusing it for copyright infringement"); + } if (array_key_exists("paste_numbers", $_POST)) { $paste_numbers = $_POST["paste_numbers"]; @@ -219,6 +224,7 @@ else // $show_paste Paste Name / Title: +