Don't strip space characters of beginning or end of password, while
still ignoring passwords consisting of just spaces, resolves #69
This commit is contained in:
parent
ff3154316c
commit
3ec7002f63
1 changed files with 1 additions and 2 deletions
|
@ -444,8 +444,7 @@ $(function() {
|
||||||
*/
|
*/
|
||||||
cipher: function(key, password, message)
|
cipher: function(key, password, message)
|
||||||
{
|
{
|
||||||
password = (password || '').trim();
|
if ((password || '').trim().length == 0)
|
||||||
if (password.length == 0)
|
|
||||||
{
|
{
|
||||||
return sjcl.encrypt(key, this.compress(message));
|
return sjcl.encrypt(key, this.compress(message));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue