mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00: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…
x
Reference in New Issue
Block a user