From ffc9b81d7b846d5b8e53bd63416358876603d324 Mon Sep 17 00:00:00 2001 From: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> Date: Fri, 27 Feb 2026 09:09:33 +0800 Subject: [PATCH] Use invariant culture to prevent unintentional IP parsing Some cultures uses comma as decimal separator which escapes this decimal check. Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- Plugins/Flow.Launcher.Plugin.Url/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Flow.Launcher.Plugin.Url/Main.cs b/Plugins/Flow.Launcher.Plugin.Url/Main.cs index 5232a00ff..482a62800 100644 --- a/Plugins/Flow.Launcher.Plugin.Url/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Url/Main.cs @@ -80,7 +80,7 @@ namespace Flow.Launcher.Plugin.Url var input = raw.Trim(); // Exclude numbers (e.g. 1.2345) - if (decimal.TryParse(input, out _)) + if (decimal.TryParse(input, System.Globalization.NumberStyles.Any, System.Globalization.CultureInfo.InvariantCulture, out _)) return false; // Check if it's a bare IP address with optional port, path, query, or fragment