mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 07:39:25 +01:00
Fixed a theoretical (not relevant for SQLite) SQL injection possibility (references #2201)
This commit is contained in:
parent
a4992ff602
commit
df4907f5d4
|
|
@ -851,7 +851,7 @@ class StockService extends BaseService
|
||||||
return $returnData;
|
return $returnData;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function GetProductStockEntries($productId, $excludeOpened = false, $allowSubproductSubstitution = false)
|
public function GetProductStockEntries(int $productId, $excludeOpened = false, $allowSubproductSubstitution = false)
|
||||||
{
|
{
|
||||||
$sqlWhereProductId = 'product_id = ' . $productId;
|
$sqlWhereProductId = 'product_id = ' . $productId;
|
||||||
if ($allowSubproductSubstitution)
|
if ($allowSubproductSubstitution)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user