You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Form conditions: case-insensitive text comparison works only for ASCII letters (Cyrillic is compared case-sensitively) #26506
11.0 (checked on the 11.0/bugfixes and main branches, 2026-11-30)
Bug description
In the form editor, text conditions ("is equal to", "contains", ...) compare values without regard to case only for Latin letters. For Cyrillic letters the case is taken into account, so a condition that looks correct silently does not match.
The same happens with accented Latin letters (for example "É" / "é").
Who is affected: the requester does not see the section or question that should open for his answer and submits an incomplete request; the form administrator sees a condition that looks correct, does not work and reports nothing.
Steps To reproduce
Create a form with two questions. Question 1 is "Short text". Question 2 has the visibility condition: question 1 contains пароль.
Type Пароль in question 1: question 2 does not appear. Type пароль: it appears.
With Latin text (password in the condition, Password in the answer) the condition matches in both cases.
Anything else?
Cause: the values are lowercased with strtolower(), which converts ASCII letters only. This is done in five condition handlers (line numbers from 11.0/bugfixes):
Proposed fix: replace strtolower() with mb_strtolower() in these five handlers (10 lines) and add test cases with Cyrillic text to StringConditionHandlerTest. We have this patch with tests ready and can open a pull request against 11.0/bugfixes if you agree.
The issue does not depend on plugins: it was reproduced by calling the core functions directly.
Activity