Skip to content

Commit b94b99a

Browse files
authored
fix: gopeed scheme safe url params (#932)
1 parent fba990a commit b94b99a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/flutter/lib/app/modules/app/controllers/app_controller.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,9 @@ class AppController extends GetxController with WindowListener, TrayListener {
337337
if (uri.path == "/create") {
338338
final params = uri.queryParameters["params"];
339339
if (params?.isNotEmpty == true) {
340+
final safeParams = params!.replaceAll(" ", "+");
340341
final paramsJson =
341-
String.fromCharCodes(base64Decode(base64.normalize(params!)));
342+
String.fromCharCodes(base64Decode(base64.normalize(safeParams)));
342343
Get.rootDelegate.offAndToNamed(Routes.REDIRECT,
343344
arguments: RedirectArgs(Routes.CREATE,
344345
arguments:

0 commit comments

Comments
 (0)