mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
Enforce alphanumeric bucket id
This commit is contained in:
parent
e7e9209cce
commit
893c5bb5c0
|
@ -86,7 +86,7 @@ class BackupsCubit extends AppConfigDependendCubit<BackupsState> {
|
|||
Future<void> createBucket() async {
|
||||
emit(state.copyWith(preventActions: true));
|
||||
final domain =
|
||||
appConfigCubit.state.cloudFlareDomain!.domainName.replaceAll('.', '-');
|
||||
appConfigCubit.state.cloudFlareDomain!.domainName.replaceAll(RegExp(r'[^a-zA-Z0-9]'), '-');
|
||||
final serverId = appConfigCubit.state.hetznerServer!.id;
|
||||
var bucketName = 'selfprivacy-$domain-$serverId';
|
||||
// If bucket name is too long, shorten it
|
||||
|
|
Loading…
Reference in a new issue