From 2a3017a3bd1f2e061a19f6e952ee3c81b153bd9c Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 1 Jul 2018 12:49:35 +0000 Subject: [PATCH] making comments on pretty printed pastes work again --- js/privatebin.js | 5 ----- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 9d41350..9c1e91e 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -4128,11 +4128,6 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { var key = Model.getPasteKey(), password = Prompt.getPassword(); - if (PasteViewer.isPrettyPrinted()) { - // don't decrypt twice - return; - } - // try to decrypt the paste try { // decrypt attachments diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index cc96a98..2f27727 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -75,7 +75,7 @@ if ($MARKDOWN): - + diff --git a/tpl/page.php b/tpl/page.php index 75f6221..acf0bdc 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -54,7 +54,7 @@ if ($QRCODE): - +