From b387a1ce4a8fe1d9d631aa773a094cb28ddb4c19 Mon Sep 17 00:00:00 2001 From: Gusted Date: Tue, 11 Nov 2025 04:45:15 +0100 Subject: [PATCH] fix: less restrictive matrix room_id pattern (#10056) - Matrix room v12 made the room ID domain-less. - The exact format varies across room versions, so don't try to give a new regular expression, simply require the input starts with `!`. - Resolves forgejo/forgejo#9341 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10056 Reviewed-by: Otto Reviewed-by: oliverpool Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: Gusted Co-committed-by: Gusted --- templates/webhook/new/matrix.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/webhook/new/matrix.tmpl b/templates/webhook/new/matrix.tmpl index 1850bab315..e8ba210187 100644 --- a/templates/webhook/new/matrix.tmpl +++ b/templates/webhook/new/matrix.tmpl @@ -12,7 +12,7 @@
- + {{ctx.Locale.Tr "repo.settings.matrix.room_id_helper" ("!opaque_id:example.org"|SafeHTML)}}