From ce107c928e4bf1287dd3f879b9ad6586640351b8 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Mon, 16 Nov 2015 19:58:45 +0100 Subject: [PATCH] supporting disabled password option in the JS part, fixes #55 --- js/zerobin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/zerobin.js b/js/zerobin.js index 3dadae9f..ee88dbb1 100644 --- a/js/zerobin.js +++ b/js/zerobin.js @@ -443,7 +443,7 @@ $(function() { */ cipher: function(key, password, message) { - password = password.trim(); + password = (password || '').trim(); if (password.length == 0) { return sjcl.encrypt(key, this.compress(message));