diff --git a/assets/src/js/functions/datatables.js b/assets/src/js/functions/datatables.js
index 7c133b399..023417f69 100755
--- a/assets/src/js/functions/datatables.js
+++ b/assets/src/js/functions/datatables.js
@@ -184,7 +184,7 @@ function start_datatables() {
var value = search['search_' + name] ? search['search_' + name] : '';
- $('
')
+ $('
')
.appendTo(column.header())
.on('keyup', function (e) {
clearInterval(tempo);
diff --git a/include/top.php b/include/top.php
index 36cec99b1..fe3ec897e 100755
--- a/include/top.php
+++ b/include/top.php
@@ -18,7 +18,7 @@ echo '
-
+
';
if (file_exists(DOCROOT.'/manifest.json')) {
@@ -51,7 +51,7 @@ if (Auth::check()) {
echo '
search.push("search_'.$field_name.'");
- search["search_'.$field_name.'"] = "'.$value.'";';
+ search["search_'.$field_name.'"] = "'.addslashes($value).'";';
}
}
}
@@ -145,7 +145,7 @@ if (Auth::check()) {
id_module: "'.$id_module.'",
id_record: "'.$id_record.'",
-
+
is_mobile: '.isMobile().',
cifre_decimali: '.setting('Cifre decimali per importi').',
@@ -170,7 +170,7 @@ if (Auth::check()) {
ckeditorToolbar: [
["Undo","Redo","-","Cut","Copy","Paste","PasteText","PasteFromWord","-","Scayt", "-","Link","Unlink","-","Bold","Italic","Underline","Superscript","SpecialChar","HorizontalRule","-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","Outdent","Indent","Blockquote","-","Styles","Format","Image","Table", "TextColor", "BGColor" ],
],
-
+
order_manager_id: "'.($dbo->isInstalled() ? Modules::get('Stato dei servizi')['id'] : '').'",
dataload_page_buffer: '.setting('Lunghezza in pagine del buffer Datatables').',
tempo_attesa_ricerche: '.setting('Tempo di attesa ricerche in secondi').',
@@ -181,7 +181,7 @@ if (Auth::check()) {