mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-24 06:49:29 -05:00
supporting disabled password option in the JS part, fixes #55
This commit is contained in:
parent
24a4328c55
commit
ce107c928e
@ -443,7 +443,7 @@ $(function() {
|
|||||||
*/
|
*/
|
||||||
cipher: function(key, password, message)
|
cipher: function(key, password, message)
|
||||||
{
|
{
|
||||||
password = password.trim();
|
password = (password || '').trim();
|
||||||
if (password.length == 0)
|
if (password.length == 0)
|
||||||
{
|
{
|
||||||
return sjcl.encrypt(key, this.compress(message));
|
return sjcl.encrypt(key, this.compress(message));
|
||||||
|
Loading…
Reference in New Issue
Block a user