diff --git a/index.php b/index.php index d86e4def4..710e2b6d2 100755 --- a/index.php +++ b/index.php @@ -28,7 +28,7 @@ $op = filter('op'); switch ($op) { case 'login': $username = post('username'); - $password = post('password'); + $password = $_POST['password']; if ($dbo->isConnected() && $dbo->isInstalled() && auth()->attempt($username, $password)) { $_SESSION['keep_alive'] = true; diff --git a/modules/smtp/actions.php b/modules/smtp/actions.php index b73133804..2f038d47d 100755 --- a/modules/smtp/actions.php +++ b/modules/smtp/actions.php @@ -53,7 +53,7 @@ switch (filter('op')) { 'server' => post('server'), 'port' => post('port'), 'username' => post('username'), - 'password' => post('password'), + 'password' => $_POST['password'], 'from_name' => post('from_name'), 'from_address' => post('from_address'), 'encryption' => post('encryption'), diff --git a/modules/utenti/actions.php b/modules/utenti/actions.php index 0ad7a2e11..c450cab0b 100755 --- a/modules/utenti/actions.php +++ b/modules/utenti/actions.php @@ -57,7 +57,7 @@ switch (filter('op')) { case 'update_user': $username = filter('username'); $email = filter('email'); - $password = filter('password'); + $password = $_POST['password']; $id_utente = filter('id_utente'); if ($dbo->fetchNum('SELECT username FROM zz_users WHERE id != '.prepare($id_utente).' AND username='.prepare($username)) == 0) { @@ -114,7 +114,7 @@ switch (filter('op')) { // Aggiunta di un nuovo utente case 'self_update': - $password = filter('password'); + $password = filter('password', null, true); $utente = Auth::user();