From 50075ea948bb7813cbbb848b80c376963f71912a Mon Sep 17 00:00:00 2001 From: El RIDO Date: Fri, 18 Sep 2015 20:25:53 +0200 Subject: [PATCH] fixing issue with attachment, empty paste & empty password --- js/zerobin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/zerobin.js b/js/zerobin.js index adbb783..619e0ec 100644 --- a/js/zerobin.js +++ b/js/zerobin.js @@ -596,7 +596,7 @@ $(function() { this.attachment.removeClass('hidden'); } var cleartext = filter.decipher(key, password, comments[0].data); - if (cleartext.length == 0 && password.length == 0) + if (cleartext.length == 0 && password.length == 0 && !comments[0].attachment) { password = this.requestPassword(); cleartext = filter.decipher(key, password, comments[0].data);