-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
Version
11.0.1
Bug description
I found that RSQL like 'name=like=ç' return empty array.
In function tokenize length of query finded by mb_strlen, but next code use direct $query[$pos].
glpi/src/Glpi/Api/HL/RSQL/Lexer.php
Line 95 in ed434df
| $length = mb_strlen($query, 'UTF-8'); |
and next code :
glpi/src/Glpi/Api/HL/RSQL/Lexer.php
Line 118 in ed434df
| $char = $query[$pos]; |
As fix I change $char to mb_substr with 1 step position.
PS. Replace text with as whole file.
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
No response
Anything else?
No response