summary refs log tree commit diff
path: root/synapse/rest/admin
diff options
context:
space:
mode:
authorAdam Jędrzejewski <59581316+adamjedrzejewski@users.noreply.github.com>2024-01-04 10:36:57 +0100
committerGitHub <noreply@github.com>2024-01-04 09:36:57 +0000
commitc7d0d02be7bf61e58388676e9e31b44004cbf257 (patch)
treeb1688310e7a17e34058e127b63e8a261550f5f2e /synapse/rest/admin
parentUpdate the contributing guide after reliecensing (#16772) (diff)
downloadsynapse-c7d0d02be7bf61e58388676e9e31b44004cbf257.tar.xz
Search non ASCII display names using Admin API (#16767)
Closes #16370

Signed-off-by: Adam Jedrzejewski <adamjedrzejewski@icloud.com>
Diffstat (limited to 'synapse/rest/admin')
-rw-r--r--synapse/rest/admin/users.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/admin/users.py b/synapse/rest/admin/users.py
index a31a268ccc..ee73f0233d 100644
--- a/synapse/rest/admin/users.py
+++ b/synapse/rest/admin/users.py
@@ -107,7 +107,7 @@ class UsersRestServletV2(RestServlet):
             )
 
         user_id = parse_string(request, "user_id")
-        name = parse_string(request, "name")
+        name = parse_string(request, "name", encoding="utf-8")
 
         guests = parse_boolean(request, "guests", default=True)
         if self._msc3861_enabled and guests: