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.
The attached patch uses the SQL LOWER() function instead of mixing usage of LOWER() and PHP strtolower(). The latter is not UTF8 aware, but the database/connection might be configured to be UTF8 aware, so the results might not be the same for all strings. It is generally better to not use functions thought to be the same, but implemented in different environments, to check for equality.
Note that this applies to DRUPAL-4-5 as well, in fact I have seen this error in there.
Comment | File | Size | Author |
---|---|---|---|
Drupal-fix-lowercasing.patch | 1.64 KB | Gábor Hojtsy | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedCommitted to HEAD and DRUPAL-4-5.
Comment #2
(not verified) CreditAttribution: commented