forked from mirrors/forgejo
[v13.0/forgejo] fix: less restrictive matrix room_id pattern (#10064)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/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 Co-authored-by: Gusted <postmaster@gusted.xyz> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10064 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org> Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
This commit is contained in:
parent
8645c12d62
commit
287feb3e5a
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
|||
</div>
|
||||
<div class="required field {{if .Err_Room}}error{{end}}">
|
||||
<label for="room_id">{{ctx.Locale.Tr "repo.settings.matrix.room_id"}}</label>
|
||||
<input id="room_id" name="room_id" type="text" value="{{.HookMetadata.Room}}" placeholder="!opaque_id:domain" pattern="^!.+:.+$" maxlength="255" required>
|
||||
<input id="room_id" name="room_id" type="text" value="{{.HookMetadata.Room}}" placeholder="!opaque_id" pattern="!.+" maxlength="255" required>
|
||||
<span class="help">{{ctx.Locale.Tr "repo.settings.matrix.room_id_helper" ("<code>!opaque_id:example.org</code>"|SafeHTML)}}</span>
|
||||
</div>
|
||||
<div class="field">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue