Clean up spaces in accountnumber.
authorAndreas Schiermeier <andreas@schiermeier.name>
Mon, 12 Oct 2015 21:02:44 +0000 (23:02 +0200)
committerAndreas Schiermeier <andreas@schiermeier.name>
Mon, 12 Oct 2015 21:02:44 +0000 (23:02 +0200)
include/members.php

index cac6ec8..f2ab928 100644 (file)
@@ -684,7 +684,8 @@ function bank_details_save() {/*{{{*/
     $("#tmp_accountnumber").val('');
     $("#tmp_bankcode").val('');
     $("#tmp_bankname").val('');
-
+    
+    accountnumber = accountnumber.replace(/\s+/g, '');
     // 4.2 Encrypt/Decrypt data using AES with masterkey
     if (accountholder != "") { $('#accountholder').val(Crypto.AES.encrypt(Crypto.charenc.UTF8.stringToBytes(accountholder), the_masterkey)); } else { $('#accountholder').val(''); }
     if (accountnumber != "") { $('#accountnumber').val(Crypto.AES.encrypt(Crypto.charenc.UTF8.stringToBytes(accountnumber), the_masterkey)); } else { $('#accountnumber').val(''); }