From 440253f0d92077a0701bc3b2515d06de7d919d0d Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:09:38 +0800 Subject: [PATCH] chore: restrict successful url launch to only http/https (#5028) --- .../plugins/database/application/cell/bloc/url_cell_bloc.dart | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frontend/appflowy_flutter/lib/plugins/database/application/cell/bloc/url_cell_bloc.dart b/frontend/appflowy_flutter/lib/plugins/database/application/cell/bloc/url_cell_bloc.dart index 299e8ced61882..fe52a73aacc8b 100644 --- a/frontend/appflowy_flutter/lib/plugins/database/application/cell/bloc/url_cell_bloc.dart +++ b/frontend/appflowy_flutter/lib/plugins/database/application/cell/bloc/url_cell_bloc.dart @@ -72,10 +72,6 @@ class URLCellBloc extends Bloc { const linkPrefix = [ 'http://', 'https://', - 'file://', - 'ftp://', - 'ftps://', - 'mailto:', ]; final shouldAddScheme = !linkPrefix.any((pattern) => content.startsWith(pattern));