mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Don't output the given input (for security reasons)
This commit is contained in:
parent
c10e97f2bd
commit
d98dfb7896
|
|
@ -699,7 +699,7 @@ class StockService extends BaseService
|
||||||
$gc = new Grocycode($barcode);
|
$gc = new Grocycode($barcode);
|
||||||
if ($gc->GetType() != Grocycode::PRODUCT)
|
if ($gc->GetType() != Grocycode::PRODUCT)
|
||||||
{
|
{
|
||||||
throw new \Exception("Grocycode $barcode is not a product code");
|
throw new \Exception('Invalid grocycode');
|
||||||
}
|
}
|
||||||
return intval($gc->GetId());
|
return intval($gc->GetId());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user