From fcce915a5f71b427e304becf4ee31907bdccca31 Mon Sep 17 00:00:00 2001 From: Ribas160 Date: Sun, 29 Jun 2025 21:27:11 +0300 Subject: [PATCH] Duplicate attachment for every comment fix --- js/privatebin.js | 3 +++ lib/Configuration.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/js/privatebin.js b/js/privatebin.js index 7298db65..1d8632f0 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -5521,6 +5521,9 @@ jQuery.PrivateBin = (function($, RawDeflate) { me.run(paste); }); + // Clear attachments to prevent duplicates + AttachmentViewer.removeAttachment(); + // decrypt paste & attachments decryptionPromises.push(decryptPaste(paste, key, password)); diff --git a/lib/Configuration.php b/lib/Configuration.php index d54ebfdc..db5c0c98 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -119,7 +119,7 @@ class Configuration 'js/kjua-0.9.0.js' => 'sha512-CVn7af+vTMBd9RjoS4QM5fpLFEOtBCoB0zPtaqIDC7sF4F8qgUSRFQQpIyEDGsr6yrjbuOLzdf20tkHHmpaqwQ==', 'js/legacy.js' => 'sha512-UxW/TOZKon83n6dk/09GsYKIyeO5LeBHokxyIq+r7KFS5KMBeIB/EM7NrkVYIezwZBaovnyNtY2d9tKFicRlXg==', 'js/prettify.js' => 'sha512-puO0Ogy++IoA2Pb9IjSxV1n4+kQkKXYAEUtVzfZpQepyDPyXk8hokiYDS7ybMogYlyyEIwMLpZqVhCkARQWLMg==', - 'js/privatebin.js' => 'sha512-zvJ6Feu2NvROB236BBxbP+8eYbUTJ5GCfhOJVL/RI6pJQpR3AS4ps0d1cVDqgUFW8wY0tiwE7JTE13gPWO3lHA==', + 'js/privatebin.js' => 'sha512-71COrSuqWNx2+HMSFiqWt0GHMC/epMc/6xP/rm6eC/BWhN/aMfkRtL3OAeDjlVCLvR6UVfAZlXndb/Fu5spQ1A==', 'js/purify-3.2.6.js' => 'sha512-zqwL4OoBLFx89QPewkz4Lz5CSA2ktU+f31fuECkF0iK3Id5qd3Zpq5dMby8KwHjIEpsUgOqwF58cnmcaNem0EA==', 'js/rawinflate-0.3.js' => 'sha512-g8uelGgJW9A/Z1tB6Izxab++oj5kdD7B4qC7DHwZkB6DGMXKyzx7v5mvap2HXueI2IIn08YlRYM56jwWdm2ucQ==', 'js/showdown-2.1.0.js' => 'sha512-WYXZgkTR0u/Y9SVIA4nTTOih0kXMEd8RRV6MLFdL6YU8ymhR528NLlYQt1nlJQbYz4EW+ZsS0fx1awhiQJme1Q==',