diff --git a/htdocs/compta/bank/card.php b/htdocs/compta/bank/card.php
index 1e79b801385..469165b4b6e 100644
--- a/htdocs/compta/bank/card.php
+++ b/htdocs/compta/bank/card.php
@@ -95,8 +95,8 @@ if ($action == 'add')
$object->proprio = trim(GETPOST("proprio", 'alphanohtml'));
$object->owner_address = trim(GETPOST("owner_address", 'nohtml'));
- $object->ics = trim($_POST["ics"]);
- $object->ics_transfer = trim($_POST["ics_transfer"]);
+ $object->ics = trim(GETPOST("ics", 'alpha');
+ $object->ics_transfer = trim(GETPOST("ics_transfer", 'alpha');
$account_number = GETPOST('account_number', 'alphanohtml');
if (empty($account_number) || $account_number == '-1')
@@ -199,8 +199,8 @@ if ($action == 'update')
$object->proprio = trim(GETPOST("proprio", 'alphanohtml'));
$object->owner_address = trim(GETPOST("owner_address", 'nohtml'));
- $object->ics = trim($_POST["ics"]);
- $object->ics_transfer = trim($_POST["ics_transfer"]);
+ $object->ics = trim(GETPOST("ics", 'alpha');
+ $object->ics_transfer = trim(GETPOST("ics_transfer", 'alpha');
$account_number = GETPOST('account_number', 'alpha');
if (empty($account_number) || $account_number == '-1')
diff --git a/htdocs/install/mysql/migration/12.0.0-13.0.0.sql b/htdocs/install/mysql/migration/12.0.0-13.0.0.sql
index e0fd93aa005..c55da956241 100644
--- a/htdocs/install/mysql/migration/12.0.0-13.0.0.sql
+++ b/htdocs/install/mysql/migration/12.0.0-13.0.0.sql
@@ -372,6 +372,9 @@ ALTER TABLE llx_bank ADD COLUMN origin_id integer;
ALTER TABLE llx_bank ADD COLUMN origin_type varchar(64) NULL;
ALTER TABLE llx_bank ADD COLUMN import_key varchar(14);
+ALTER TABLE llx_bank_account ADD COLUMN ics varchar(32) NULL;
+ALTER TABLE llx_bank_account ADD COLUMN ics_transfer varchar(32) NULL;
+
ALTER TABLE llx_menu MODIFY COLUMN enabled text;
CREATE TABLE llx_ecm_files_extrafields
diff --git a/htdocs/langs/en_US/withdrawals.lang b/htdocs/langs/en_US/withdrawals.lang
index c044ba16613..0f64f8fbece 100644
--- a/htdocs/langs/en_US/withdrawals.lang
+++ b/htdocs/langs/en_US/withdrawals.lang
@@ -147,4 +147,4 @@ InfoRejectSubject=Direct debit payment order refused
InfoRejectMessage=Hello,
the direct debit payment order of invoice %s related to the company %s, with an amount of %s has been refused by the bank.
--
%s
ModeWarning=Option for real mode was not set, we stop after this simulation
ErrorCompanyHasDuplicateDefaultBAN=Company with id %s has more than one default bank account. No way to know wich one to use.
-ErrorICSmissing=Missing ICS in Bank account %s
\ No newline at end of file
+ErrorICSmissing=Missing ICS in Bank account %s