From a057e31e5d779c841e063687b932bf01622977a8 Mon Sep 17 00:00:00 2001 From: papee Date: Wed, 12 Aug 2020 11:34:33 +0200 Subject: [PATCH 1/2] change prettify code error in behavior --- zerobin/static/js/behavior.js | 5 +++-- zerobin/views/base.tpl | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/zerobin/static/js/behavior.js b/zerobin/static/js/behavior.js index ae70b08..3f492ab 100644 --- a/zerobin/static/js/behavior.js +++ b/zerobin/static/js/behavior.js @@ -629,7 +629,8 @@ window.zerobin = { } } - return total * 250 / size; + // return total * 250 / size; + return total * 1000 / size; }, // prevent defaults @@ -756,7 +757,7 @@ if (content && key) { function (content) { /* Decrypted content goes back to initial container*/ - document.querySelector('#paste-content').innerHTML = content; + document.querySelector('#paste-content').innerText = content; if (content.indexOf('data:image') == 0) { // Display Image diff --git a/zerobin/views/base.tpl b/zerobin/views/base.tpl index 50a711d..5277385 100644 --- a/zerobin/views/base.tpl +++ b/zerobin/views/base.tpl @@ -79,8 +79,8 @@ %else: - %end +

× From e5637fd7bf79bd861a1a9d4adc3f92b140e1c7dc Mon Sep 17 00:00:00 2001 From: papee Date: Wed, 12 Aug 2020 11:35:35 +0200 Subject: [PATCH 2/2] change prettify code error in behavior --- zerobin/views/paste.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerobin/views/paste.tpl b/zerobin/views/paste.tpl index cf66ad5..7436e8e 100644 --- a/zerobin/views/paste.tpl +++ b/zerobin/views/paste.tpl @@ -55,7 +55,7 @@ %if expiration: Expire {{ expiration }} %end - +

       
         {{ paste.content }}