escape sql string for my Travais friend

This commit is contained in:
Christophe Battarel 2022-04-29 10:12:53 +02:00
parent fb076a9282
commit a11b5b4399

View File

@ -235,7 +235,7 @@ if ($action == 'getProducts') {
$sql .= $hookmanager->resPrint;
// load only one page of products
$sql.= ' LIMIT '. $search_start . ',' . $search_limit;
$sql.= ' LIMIT '. $db->escape($search_start) . ',' . $db->escape($search_limit);
$resql = $db->query($sql);
if ($resql) {