This commit is contained in:
Laurent Destailleur
2025-11-18 11:36:45 +01:00
parent 4703344acc
commit 61a849090b
5 changed files with 7 additions and 6 deletions

View File

@@ -1344,6 +1344,7 @@ function sanitizeVal($out = '', $check = 'alphanohtml', $filter = null, $options
} }
break; break;
case 'san_alpha': case 'san_alpha':
dol_syslog("Use of parameter value 'san_alpha' in GETPOST is deprecated. Use 'alphanohtml', 'aZ09comma', ...", LOG_WARNING);
$out = filter_var($out, FILTER_SANITIZE_STRING); $out = filter_var($out, FILTER_SANITIZE_STRING);
break; break;
case 'email': case 'email':

View File

@@ -536,7 +536,7 @@ if ($action == "transfert_stock" && $permissiontoadd && !$cancel) {
$srcwarehouseid, $srcwarehouseid,
GETPOSTFLOAT("nbpiece"), GETPOSTFLOAT("nbpiece"),
1, 1,
GETPOST("label", 'san_alpha'), GETPOST("label", 'aZ09comma'),
(float) $pricesrc, (float) $pricesrc,
$eatby, $eatby,
$sellby, $sellby,
@@ -553,7 +553,7 @@ if ($action == "transfert_stock" && $permissiontoadd && !$cancel) {
GETPOSTINT("id_entrepot_destination"), GETPOSTINT("id_entrepot_destination"),
GETPOSTFLOAT("nbpiece"), GETPOSTFLOAT("nbpiece"),
0, 0,
GETPOST("label", 'san_alpha'), GETPOST("label", 'aZ09comma'),
(float) $pricedest, (float) $pricedest,
$eatby, $eatby,
$sellby, $sellby,

View File

@@ -83,7 +83,7 @@ $fieldid = GETPOSTISSET("ref") ? 'ref' : 'rowid';
$d_eatby = dol_mktime(0, 0, 0, GETPOSTINT('eatbymonth'), GETPOSTINT('eatbyday'), GETPOSTINT('eatbyyear')); $d_eatby = dol_mktime(0, 0, 0, GETPOSTINT('eatbymonth'), GETPOSTINT('eatbyday'), GETPOSTINT('eatbyyear'));
$d_sellby = dol_mktime(0, 0, 0, GETPOSTINT('sellbymonth'), GETPOSTINT('sellbyday'), GETPOSTINT('sellbyyear')); $d_sellby = dol_mktime(0, 0, 0, GETPOSTINT('sellbymonth'), GETPOSTINT('sellbyday'), GETPOSTINT('sellbyyear'));
$pdluoid = GETPOSTINT('pdluoid'); $pdluoid = GETPOSTINT('pdluoid');
$batchnumber = GETPOST('batch_number', 'san_alpha'); $batchnumber = GETPOST('batch_number', 'aZ09comma');
if (!empty($batchnumber)) { if (!empty($batchnumber)) {
$batchnumber = trim($batchnumber); $batchnumber = trim($batchnumber);
} }

View File

@@ -242,7 +242,7 @@ if (empty($reshook)) {
$task_to_affect = explode(',', $affecttotask); $task_to_affect = explode(',', $affecttotask);
if (!empty($task_to_affect)) { if (!empty($task_to_affect)) {
foreach ($task_to_affect as $task_id) { foreach ($task_to_affect as $task_id) {
if (GETPOSTISSET('person_'.$task_id) && GETPOST('person_'.$task_id, 'san_alpha')) { if (GETPOSTISSET('person_'.$task_id) && GETPOST('person_'.$task_id, 'aZ09comma')) {
$tasksToAffect = new Task($db); $tasksToAffect = new Task($db);
$result = $tasksToAffect->fetch((int) $task_id); $result = $tasksToAffect->fetch((int) $task_id);
if ($result < 0) { if ($result < 0) {

View File

@@ -437,7 +437,7 @@ if (empty($reshook)) {
// Webservices url/key // Webservices url/key
$object->webservices_url = GETPOST('webservices_url', 'url'); $object->webservices_url = GETPOST('webservices_url', 'url');
$object->webservices_key = GETPOST('webservices_key', 'san_alpha'); $object->webservices_key = GETPOST('webservices_key', 'password');
if (GETPOSTISSET('accountancy_code_sell')) { if (GETPOSTISSET('accountancy_code_sell')) {
$accountancy_code_sell = GETPOST('accountancy_code_sell', 'alpha'); $accountancy_code_sell = GETPOST('accountancy_code_sell', 'alpha');
@@ -2130,7 +2130,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
// Webservices url/key // Webservices url/key
$object->webservices_url = GETPOST('webservices_url', 'url'); $object->webservices_url = GETPOST('webservices_url', 'url');
$object->webservices_key = GETPOST('webservices_key', 'san_alpha'); $object->webservices_key = GETPOST('webservices_key', 'password');
if (GETPOSTISSET('accountancy_code_sell')) { if (GETPOSTISSET('accountancy_code_sell')) {
$accountancy_code_sell = GETPOST('accountancy_code_sell', 'alpha'); $accountancy_code_sell = GETPOST('accountancy_code_sell', 'alpha');