Skip to content

Commit 046a3ac

Browse files
authored
fix: can not open url encode torrent file path (#945)
1 parent 9c5aeba commit 046a3ac

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
@@ -359,7 +359,8 @@ class AppController extends GetxController with WindowListener, TrayListener {
359359
uri.scheme == "https") {
360360
path = uri.toString();
361361
} else if (uri.scheme == "file") {
362-
path = Util.isWindows() ? uri.path.substring(1) : uri.path;
362+
path =
363+
Util.isWindows() ? Uri.decodeFull(uri.path.substring(1)) : uri.path;
363364
} else {
364365
path = (await toFile(uri.toString())).path;
365366
}

0 commit comments

Comments
 (0)