diff --git a/js/zerobin.js b/js/zerobin.js index 52979e9b..bfbcfa12 100644 --- a/js/zerobin.js +++ b/js/zerobin.js @@ -444,8 +444,7 @@ $(function() { */ cipher: function(key, password, message) { - password = (password || '').trim(); - if (password.length == 0) + if ((password || '').trim().length == 0) { return sjcl.encrypt(key, this.compress(message)); }