Explorar o código

fixing issue with attachment, empty paste & empty password

El RIDO %!s(int64=11) %!d(string=hai) anos
pai
achega
50075ea948
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      js/zerobin.js

+ 1 - 1
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);