Skip to content

Commit ae3559c

Browse files
committed
fix: explicit scheme
1 parent 1a373e1 commit ae3559c

File tree

1 file changed

+1
-1
lines changed
  • Plugins/Flow.Launcher.Plugin.Url

1 file changed

+1
-1
lines changed

Plugins/Flow.Launcher.Plugin.Url/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public List<Result> Query(Query query)
5959
Score = 8,
6060
Action = _ =>
6161
{
62-
if (!raw.ToLower().StartsWith(GetHttpPreference()))
62+
if (!raw.StartsWith("http://", StringComparison.OrdinalIgnoreCase) && !raw.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
6363
{
6464
raw = GetHttpPreference() + "://" + raw;
6565
}

0 commit comments

Comments
 (0)