Files
localsend/app
eason 9e4a5985b5
CI / format (push) Has been cancelled
CI / test (push) Has been cancelled
CI / packaging (push) Has been cancelled
fix: prevent text starting with URL from being misidentified as link (#2975)
Dart's Uri.tryParse is very permissive and will successfully parse
strings like "https://example.com some extra text" as valid absolute
URIs. This caused the receiver to incorrectly classify any message
beginning with a URL as a link, even when it contained additional
non-URL text.

Add a whitespace check before URI parsing so that only messages
consisting entirely of a single URL (with optional surrounding
whitespace) are treated as links.

Fixes #2904

Co-authored-by: easonysliu <easonysliu@tencent.com>
2026-03-18 17:39:17 +01:00
..
2026-03-02 04:13:49 +01:00
2025-08-14 23:25:59 +03:00
2026-03-03 02:34:20 +01:00
2026-03-03 02:34:20 +01:00
2025-07-12 18:59:45 +02:00
2025-10-27 01:54:38 +01:00
2024-10-27 02:45:17 +02:00
2026-03-02 23:40:54 +01:00
2025-10-13 17:55:35 +02:00