mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-12-04 15:46:07 +00:00
fix: do not print rustdesk:// links in the uni-links handlers
A link can carry a password (`?password=`, or `rustdesk://password/<pw>` on mobile), and print/debugPrint output stays in release builds. Found in #17413. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JAxkkig1bcC5Xrr1uwX47b
This commit is contained in:
1 parent
b41bfedbb1
commit
45bfda4d50
1 file changed
+2
-2
@@ -2196,7 +2196,7 @@ Future<bool> initUniLinks() async {
|
||||
// check cold boot
|
||||
try {
|
||||
final initialLink = await getInitialLink();
|
||||
print("initialLink: $initialLink");
|
||||
print("initialLink received: ${initialLink?.isNotEmpty == true}");
|
||||
if (initialLink == null || initialLink.isEmpty) {
|
||||
return false;
|
||||
}
|
||||
@@ -2223,7 +2223,7 @@ StreamSubscription? listenUniLinks({handleByFlutter = true}) {
|
||||
}
|
||||
|
||||
final sub = uriLinkStream.listen((Uri? uri) {
|
||||
debugPrint("A uri was received: $uri. handleByFlutter $handleByFlutter");
|
||||
debugPrint("A uri was received. handleByFlutter $handleByFlutter");
|
||||
if (uri != null) {
|
||||
if (handleByFlutter) {
|
||||
handleUriLink(uri: uri);
|
||||
|
||||
Reference in new issue
Block a user