Reduce roomID length, limit Pad Name to 39 characters

This commit is contained in:
Tony Stipanic 2021-09-17 19:01:18 +02:00
parent 147a536402
commit 629cc43560
No known key found for this signature in database
GPG key ID: 3026BCCB6C9CC6BD
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@
<label class="label-block">
{{'Pad Name' | translate}}
<input type="text" class="form-control"
maxlength="39"
placeholder="{{ defaultName }}"
[(ngModel)]="widget.dimension.newName" name="widget-name-{{widget.id}}"
[disabled]="isUpdating"/>

View file

@ -40,7 +40,7 @@ export class EtherpadWidgetConfigComponent extends WidgetComponent {
template = this.etherpadWidget.options.defaultUrl;
}
template = template.replace("$roomId", encodeURIComponent(SessionStorage.roomId));
template = template.replace("$roomId", encodeURIComponent(SessionStorage.roomId).slice(0, 10));
template = template.replace("$padName", encodeURIComponent(name));
widget.dimension.newUrl = template;