From e16fa0c218700424c930bfb090d3d74581b1d3ef Mon Sep 17 00:00:00 2001 From: root Date: Fri, 27 Mar 2015 18:23:26 +0100 Subject: [PATCH] Remove default parameters (Chrome...) --- server/resources/gpass.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/resources/gpass.js b/server/resources/gpass.js index 0334ec9..c585fb1 100755 --- a/server/resources/gpass.js +++ b/server/resources/gpass.js @@ -117,7 +117,7 @@ var passwords; var current_user = ""; var current_mkey = ""; -function PasswordEntry (ciphered_login, ciphered_password, salt="", shadow_login="") { +function PasswordEntry (ciphered_login, ciphered_password, salt, shadow_login) { this.ciphered_login = ciphered_login; this.ciphered_password = ciphered_password; this.unciphered = false; @@ -550,7 +550,7 @@ function construct_pentry(user, url, password, login, mkey, derive_masterkey) ciphered_login = a2hex(aes.encryptLongString(ciphered_login, a_masterkey)); ciphered_password = a2hex(aes.encryptLongString(ciphered_password, a_masterkey)); - pentry = new PasswordEntry(ciphered_login, ciphered_password); + pentry = new PasswordEntry(ciphered_login, ciphered_password, "", ""); pentry.unciphered = true; pentry.clear_url = url; pentry.clear_login = login;