This commit is contained in:
Frédéric FRANCE 2020-11-13 21:00:23 +01:00 committed by GitHub
parent 1f69f4ed5d
commit c4b13b154e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,8 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
// Load translation files required by page
$langs->loadLangs(array('users', 'admin'));
$action = GETPOST('action', 'aZ09');
$id = GETPOST('id', 'int');
$action = (string) GETPOST('action', 'aZ09');
$id = (int) GETPOST('id', 'int');
// Security check
$socid = 0;
@ -54,14 +54,13 @@ if (empty($reshook)) {
$edituser = new User($db);
$edituser->fetch($id);
$edituser->clicktodial_url = GETPOST("url");
$edituser->clicktodial_login = GETPOST("login");
$edituser->clicktodial_password = GETPOST("password");
$edituser->clicktodial_poste = GETPOST("poste");
$edituser->clicktodial_url = (string) GETPOST("url", "alpha");
$edituser->clicktodial_login = (string) GETPOST("login", "alpha");
$edituser->clicktodial_password = (string) GETPOST("password", "alpha");
$edituser->clicktodial_poste = (string) GETPOST("poste", "alpha");
$result = $edituser->update_clicktodial();
if ($result < 0)
{
if ($result < 0) {
setEventMessages($edituser->error, $edituser->errors, 'errors');
}
}