Checking allowed bundles goes wrong.

Created on 4 October 2022, over 1 year ago
Updated 27 January 2023, over 1 year ago

Problem/Motivation

When checking allowed bundles the module looks for a value string or 0. When a bundle is not allowed config has the value "0" to disable it. This way it is always allowed even when it's not configured like that, because "0" is a string and not false or null.

Proposed resolution

Add intval() around variable does the job.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands TommieCrawford

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024