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.
In the service class's preQuery()
method, you use $keys = $query->getOriginalKeys();
to retrieve the unparsed keys, so you can lowercase them if necessary.
However, the original keys might already be an array – they are what is passed to the query's keys()
method, and already parsed keys are allowed there.
You should therefore at least check if the return value is really a string before using preg_match
on it.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2117613-1--original_keys.patch | 866 bytes | drunken monkey |
Comments
Comment #1
drunken monkeyPatch attached.
Comment #2
Nick_vhThanks! Committed