From b94b99ae09a9840fdb0336660fec47c05a6aa52b Mon Sep 17 00:00:00 2001 From: Levi Date: Thu, 13 Feb 2025 21:55:37 +0800 Subject: [PATCH] fix: gopeed scheme safe url params (#932) --- 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 45baea01..aad26efe 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: