supporting disabled password option in the JS part, fixes #55
This commit is contained in:
parent
24a4328c55
commit
ce107c928e
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue