mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
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>
This commit is contained in:
parent
0c51c41c97
commit
ffc9b81d7b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue