From 03fd67e3a1616ba3578274d4fa3af4b656f354e4 Mon Sep 17 00:00:00 2001 From: liwei Date: Fri, 7 Feb 2025 12:11:08 +0800 Subject: [PATCH] fix: gopeed scheme safe url params --- ui/flutter/lib/app/modules/app/controllers/app_controller.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/flutter/lib/app/modules/app/controllers/app_controller.dart b/ui/flutter/lib/app/modules/app/controllers/app_controller.dart index 45baea01d..aad26efeb 100644 --- a/ui/flutter/lib/app/modules/app/controllers/app_controller.dart +++ b/ui/flutter/lib/app/modules/app/controllers/app_controller.dart @@ -337,8 +337,9 @@ class AppController extends GetxController with WindowListener, TrayListener { if (uri.path == "/create") { final params = uri.queryParameters["params"]; if (params?.isNotEmpty == true) { + final safeParams = params!.replaceAll(" ", "+"); final paramsJson = - String.fromCharCodes(base64Decode(base64.normalize(params!))); + String.fromCharCodes(base64Decode(base64.normalize(safeParams))); Get.rootDelegate.offAndToNamed(Routes.REDIRECT, arguments: RedirectArgs(Routes.CREATE, arguments: