🚿 QROptionsTrait::set_imageTransparencyBG(): cut off exceeding items

This commit is contained in:
codemasher
2020-04-04 05:16:10 +02:00
parent 552d1581f6
commit d768570282
+5
View File
@@ -269,6 +269,11 @@ trait QROptionsTrait{
foreach($imageTransparencyBG as $k => $v){
// cut off exceeding items
if($k > 2){
break;
}
if(!is_numeric($v)){
throw new QRCodeException('Invalid RGB value.');
}