Problem/Motivation
Transliterate the string that is to be added as a role on the user object
Steps to reproduce
If you do have a non-US-ASCII string e.g Reisebüro and try to add that string as a role to the user object, Mysql will throw an error.
Proposed resolution
Transliterate the string to US-ASCII characters.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3216543-2-transliterate-the-string.patch | 779 bytes | bonrita |
Comments
Comment #2
bonrita commentedComment #3
grahlComment #6
grahlWith role creation we noticed that theoretically role IDs could not be safe without not just transliteration but also other characters (though most are already excluded through the LDAP specification).
I've extended the sanitization now to grant and revoke so that we should always use a safe string for Drupal roles.