mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Close #36298
This commit is contained in:
@@ -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':
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user