mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-30 12:07:32 +00:00
🚿 QROptionsTrait::set_imageTransparencyBG(): cut off exceeding items
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user