Skip to content

fix(SearchPlugin): check search queries for multibyte characters#17132

Merged
nickvergessen merged 3 commits intomainfrom
fix/noid/mb-str-patch
Feb 16, 2026
Merged

fix(SearchPlugin): check search queries for multibyte characters#17132
nickvergessen merged 3 commits intomainfrom
fix/noid/mb-str-patch

Conversation

@Antreesy
Copy link
Contributor

☑️ Resolves

  • Fix chat mentions search + non-latin alphabet with case-insensitive examples

@кирилл | @Кирилл

🛠️ API Checklist

Before After
image image

🚧 Tasks

  • So far only displayName checks were added in one places. Maybe there's more needed?

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not possible
  • 📘 API documentation in docs/ has been updated or is not required
  • 🔖 Capability is added or not needed

- applicable to chat mentions search + non-latin alphabet with case-insensitive examples

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@Antreesy Antreesy added this to the 🏖️ Next Major (34) milestone Feb 16, 2026
@Antreesy Antreesy self-assigned this Feb 16, 2026
@Antreesy Antreesy added bug feature: api 🛠️ OCS API for conversations, chats and participants 3. to review labels Feb 16, 2026
@miaulalala
Copy link
Contributor

miaulalala commented Feb 16, 2026

Had a quick look, possible candidates are:

  • \OCA\Talk\GuestManager
  • \OCA\Talk\Collaboration\Collaborators\RoomPlugin
  • OCA\Talk\Search\ConversationSearch.php

There's also some calls to strtolower in the InvitationService but I'm a bit hesitant to change that unless we have an integration test

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen
Copy link
Member

/backport to stable33

@nickvergessen
Copy link
Member

/backport to stable32

@Antreesy Antreesy marked this pull request as ready for review February 16, 2026 14:54
@nickvergessen
Copy link
Member

Let me fix conversation search

Signed-off-by: Joas Schilling <coding@schilljs.com>
Comment on lines +126 to +129
$result[mb_strtolower($displayName . '#' . $room->getToken())] = $entry;

if ($query->getCursor() === $room->getToken()) {
$cursorKey = strtolower($displayName . '#' . $room->getToken());
$cursorKey = mb_strtolower($displayName . '#' . $room->getToken());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would only lowercasing the room name work too? Could be considered a tiny performance improvement

@nickvergessen nickvergessen merged commit f154d67 into main Feb 16, 2026
83 checks passed
@nickvergessen nickvergessen deleted the fix/noid/mb-str-patch branch February 16, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug feature: api 🛠️ OCS API for conversations, chats and participants

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants