diff --git a/htdocs/core/ajax/flowjs-server.php b/htdocs/core/ajax/flowjs-server.php
index 480dba39195..962db0b8548 100644
--- a/htdocs/core/ajax/flowjs-server.php
+++ b/htdocs/core/ajax/flowjs-server.php
@@ -35,9 +35,6 @@ if (!defined('NOREQUIREAJAX')) {
if (!defined('NOREQUIRESOC')) {
define('NOREQUIRESOC', '1');
}
-if (!defined('NOCSRFCHECK')) {
- define('NOCSRFCHECK', '1');
-}
// If there is no need to load and show top and left menu
if (!defined("NOLOGIN")) {
define("NOLOGIN", '1');
diff --git a/htdocs/public/test/test_forms.php b/htdocs/public/test/test_forms.php
index e041e1d98fa..50693000442 100644
--- a/htdocs/public/test/test_forms.php
+++ b/htdocs/public/test/test_forms.php
@@ -109,7 +109,7 @@ print '
'."\n";
// Test6a: Upload of big files
print "Test 6a: Upload of big files \n";
-print "The file will be uploaded in the directory: documents/test_form/temp/ \n";
+print "The file will be uploaded in the directory: documents/test/temp/ \n";
if (is_file(DOL_DOCUMENT_ROOT.'/includes/flowjs/flow.js')) {
print '';
@@ -121,7 +121,7 @@ if (is_file(DOL_DOCUMENT_ROOT.'/includes/flowjs/flow.js')) {
jQuery(document).ready(function() {
var flow = new Flow({
target:"'.DOL_URL_ROOT.'/core/ajax/flowjs-server.php",
- query:{module:"test_form"},
+ query:{module:"test", token:"'.newToken().'"},
testChunks:false
});
';
@@ -166,7 +166,7 @@ if (is_file(DOL_DOCUMENT_ROOT.'/includes/flowjs/flow.js')) {
';
print '';
} else {
- print "If this message displays, please add flow.js file which can be found here :https://github.com/flowjs/flow.js and place the js lib in htdocs/includes/flowjs/ \n";
+ print "If this message displays, please add flow.js and flow.min.js files which can be found here: https://github.com/flowjs/flow.js and place the js lib in htdocs/includes/flowjs/ \n";
}
print '';