Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you call phone_supported_countrycode() with a country code that is actually not supported, with phone_country_info() returning false, the actual evaluation in phone_supported_countrycode() checks for NULL, and since FALSE is not NULL, returns TRUE.
Comment | File | Size | Author |
---|---|---|---|
#1 | phone_supported_countrycode_true-2388167-1.patch | 444 bytes | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedCreated patch to fix the issue, and check for !== FALSE instead of !== NULL