diff --git a/CHANGES.md b/CHANGES.md
index 0d64f586..876999d8 100755
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -7,8 +7,9 @@
- Stockage des données JSON, forçage au format objet.
## Version 12.3.10
+- Edition d'un utilisateur, affiche correctement la langue de l'interface dans l'édition d'un utilisateur.
- Mise à jour du fichier dialog.php de Responsive File Manager
-- Vulnérabilité dans ajax_call.php CVE-2020-10567
+- Vulnérabilité dans ajax_call.php CVE-2020-10567, désactivation de TUI Editor et de la fonction save_image.
## Version 12.3.09
### Corrections
diff --git a/core/vendor/filemanager/ajax_calls.php b/core/vendor/filemanager/ajax_calls.php
index 6b97f280..4ab1b48d 100644
--- a/core/vendor/filemanager/ajax_calls.php
+++ b/core/vendor/filemanager/ajax_calls.php
@@ -5,7 +5,7 @@ $config = include 'config/config.php';
require_once 'include/utils.php';
if ($_SESSION['RF']["verify"] != "RESPONSIVEfilemanager") {
- response(trans('forbidden') . AddErrorLocation())->send();
+ response(trans('forbidden').AddErrorLocation())->send();
exit;
}
$languages = include 'lang/languages.php';
@@ -14,24 +14,24 @@ if (isset($_SESSION['RF']['language']) && file_exists('lang/' . basename($_SESSI
if (array_key_exists($_SESSION['RF']['language'], $languages)) {
include 'lang/' . basename($_SESSION['RF']['language']) . '.php';
} else {
- response(trans('Lang_Not_Found') . AddErrorLocation())->send();
+ response(trans('Lang_Not_Found').AddErrorLocation())->send();
exit;
}
} else {
- response(trans('Lang_Not_Found') . AddErrorLocation())->send();
+ response(trans('Lang_Not_Found').AddErrorLocation())->send();
exit;
}
//check $_GET['file']
if (isset($_GET['file']) && !checkRelativePath($_GET['file'])) {
- response(trans('wrong path') . AddErrorLocation())->send();
+ response(trans('wrong path').AddErrorLocation())->send();
exit;
}
//check $_POST['file']
-if (isset($_POST['path']) && !checkRelativePath($_POST['path'])) {
- response(trans('wrong path') . AddErrorLocation())->send();
+if(isset($_POST['path']) && !checkRelativePath($_POST['path'])) {
+ response(trans('wrong path').AddErrorLocation())->send();
exit;
}
@@ -43,16 +43,16 @@ if (isset($_GET['action'])) {
case 'new_file_form':
echo trans('Filename') . ':
' . $data . '
';
+ $ret .= ''.$data.'
';
} elseif ($preview_mode == 'google') {
if ($ftp) {
$url_file = $selected_file;
@@ -633,28 +627,28 @@ if (isset($_GET['action'])) {
$url_file = $config['base_url'] . $config['upload_dir'] . str_replace($config['current_path'], '', $_GET["file"]);
}
- $googledoc_url = urlencode($url_file);
- $ret = "";
- }
- } else {
- $data = stripslashes(htmlspecialchars(file_get_contents($selected_file)));
- if (in_array($info['extension'], array('html', 'html'))) {
- $ret = '';
- } else {
- $ret = '';
- }
+ $googledoc_url = urlencode($url_file);
+ $ret = "";
+ }
+ }else{
+ $data = stripslashes(htmlspecialchars(file_get_contents($selected_file)));
+ if(in_array($info['extension'],array('html','html'))){
+ $ret = '';
+ }else{
+ $ret = '';
+ }
- }
+ }
- response($ret)->send();
- exit;
+ response($ret)->send();
+ exit;
break;
default:
- response(trans('no action passed') . AddErrorLocation())->send();
+ response(trans('no action passed').AddErrorLocation())->send();
exit;
}
} else {
- response(trans('no action passed') . AddErrorLocation())->send();
+ response(trans('no action passed').AddErrorLocation())->send();
exit;
-}
\ No newline at end of file
+}
diff --git a/core/vendor/filemanager/config/config.php b/core/vendor/filemanager/config/config.php
index 06339a45..cb0254ae 100644
--- a/core/vendor/filemanager/config/config.php
+++ b/core/vendor/filemanager/config/config.php
@@ -447,7 +447,7 @@ $config = array(
* TUI Image Editor config
*******************/
// Add or modify the options below as needed - they will be json encoded when added to the configuration so arrays can be utilized as needed
- 'tui_active' => true,
+ 'tui_active' => false,
'tui_position' => 'bottom',
// 'common.bi.image' => "../assets/images/logo.png",
// 'common.bisize.width' => '70px',