diff --git a/html/ajax_misc.php b/html/ajax_misc.php
index 7d18c844a..bca937998 100644
--- a/html/ajax_misc.php
+++ b/html/ajax_misc.php
@@ -59,7 +59,7 @@ foreach ($var as $v)
}
if ($cont != 0)
exit();
-extract($_REQUEST);
+extract($_REQUEST, EXTR_SKIP );
if ( isset($div)) ajax_disconnected($div);
global $g_user, $cn, $g_parameter;
//
diff --git a/html/compute.php b/html/compute.php
index f4f9de7c6..d349ca3c0 100644
--- a/html/compute.php
+++ b/html/compute.php
@@ -38,7 +38,7 @@ require_once NOALYSS_INCLUDE.'/class/class_acc_tva.php';
require_once NOALYSS_INCLUDE.'/class/class_user.php';
// Check if the needed field does exist
-extract ($_GET);
+extract ($_GET, EXTR_SKIP );
foreach (array('t','c','p','q','n','gDossier') as $a)
{
if ( ! isset (${$a}) )
diff --git a/html/do.php b/html/do.php
index aa7e1fb00..b01ab8d3b 100644
--- a/html/do.php
+++ b/html/do.php
@@ -70,7 +70,7 @@ if ( ! $cn->exist_table('version')) {
*/
if ( isset ($_POST['set_preference'])) {
//// Save value
- extract($_POST);
+ extract($_POST, EXTR_SKIP );
if (strlen(trim($pass_1)) != 0 && strlen(trim($pass_2)) != 0)
{
diff --git a/html/user_login.php b/html/user_login.php
index 25a37a4bb..86bbffc3b 100644
--- a/html/user_login.php
+++ b/html/user_login.php
@@ -104,17 +104,23 @@ $priv=($User->admin==1)?_("Administrateur"):_("Utilisateur");
load_all_script();
if ( isset ($_POST['set_preference'])) {
//// Save value
- extract($_POST);
-
+ $pass_1=HtmlInput::default_value_post("pass_1", "");
+ $pass_2=HtmlInput::default_value_post("pass_2", "");
+ $style_user=HtmlInput::default_value_post("style_user", "");
+ $lang=HtmlInput::default_value_post("lang", "");
if (strlen(trim($pass_1)) != 0 && strlen(trim($pass_2)) != 0)
{
$User->save_password($pass_1,$pass_2);
}
- $User->save_global_preference('THEME', $style_user);
- $User->save_global_preference('LANG', $lang);
- $_SESSION['g_theme']=$style_user;
- $_SESSION['g_lang']=$lang;
+ if (trim($style_user) != "") {
+ $User->save_global_preference('THEME',$style_user);
+ $_SESSION['g_theme']=$style_user;
+ }
+ if (trim($lang) != "") {
+ $User->save_global_preference('LANG', $lang);
+ $_SESSION['g_lang']=$lang;
+ }
$User->load();
$User->save_email($p_email);
}
diff --git a/include/ajax/ajax_account_update.php b/include/ajax/ajax_account_update.php
index 8a768dafc..558cac37b 100644
--- a/include/ajax/ajax_account_update.php
+++ b/include/ajax/ajax_account_update.php
@@ -49,7 +49,7 @@ for ($i=0; $i';
+ $html.='