We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 898cf38 commit 2adb15eCopy full SHA for 2adb15e
1 file changed
modules/impianti/ajax/select.php
@@ -121,7 +121,12 @@
121
122
$impianti = $superselect['matricola'];
123
if (!empty($impianti)) {
124
- $where[] = '`my_componenti`.`id_impianto` IN ('.$impianti.')';
+ // Sanifica la lista di ID separati da virgola
125
+ $ids = explode(',', $impianti);
126
+ $ids_preparati = array_map(function($id) {
127
+ return prepare(trim($id));
128
+ }, $ids);
129
+ $where[] = '`my_componenti`.`id_impianto` IN ('.implode(',', $ids_preparati).')';
130
}
131
132
if (!empty($search)) {
0 commit comments