Don't output the given input (for security reasons)

This commit is contained in:
Bernd Bestel 2021-08-15 10:43:24 +02:00
parent c10e97f2bd
commit d98dfb7896
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -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());
} }