mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-03 17:49:19 +02:00
fixing issue with attachment, empty paste & empty password
This commit is contained in:
parent
ed9c4f45f4
commit
50075ea948
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue