mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
WebSearch: convert search word to url encoding before opening the url
This commit is contained in:
parent
a30f60c2ba
commit
db0f228f4d
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
@ -42,7 +42,7 @@ namespace Wox.Plugin.SystemPlugins
|
||||||
IcoPath = webSearch.IconPath,
|
IcoPath = webSearch.IconPath,
|
||||||
Action = (c) =>
|
Action = (c) =>
|
||||||
{
|
{
|
||||||
Process.Start(webSearch.Url.Replace("{q}", keyword));
|
Process.Start(webSearch.Url.Replace("{q}", Uri.EscapeDataString(keyword)));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -66,7 +66,7 @@ namespace Wox.Plugin.SystemPlugins
|
||||||
IcoPath = webSearch.IconPath,
|
IcoPath = webSearch.IconPath,
|
||||||
Action = (c) =>
|
Action = (c) =>
|
||||||
{
|
{
|
||||||
Process.Start(webSearch.Url.Replace("{q}", o));
|
Process.Start(webSearch.Url.Replace("{q}", Uri.EscapeDataString(o)));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}).ToList());
|
}).ToList());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue