Skip to content

Commit 1ab6734

Browse files
committed
fix: prevenzione sql injection
1 parent 9add9c7 commit 1ab6734

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/stampe/actions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
switch (post('op')) {
2424
case 'update':
2525
if (!empty(intval(post('predefined'))) && !empty(post('module'))) {
26-
$dbo->query('UPDATE `zz_prints` SET `predefined` = 0 WHERE `id_module` = '.post('module'));
26+
$dbo->query('UPDATE `zz_prints` SET `predefined` = 0 WHERE `id_module` = '.prepare(post('module')));
2727
}
2828
$print->options = post('options');
2929
$print->order = post('order');

0 commit comments

Comments
 (0)