From db0f228f4d112e4d01f9953c4a3d309769c871f9 Mon Sep 17 00:00:00 2001 From: zlsun Date: Mon, 25 Aug 2014 16:20:08 +0800 Subject: [PATCH] WebSearch: convert search word to url encoding before opening the url --- Wox.Plugin.SystemPlugins/WebSearch/WebSearchPlugin.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Wox.Plugin.SystemPlugins/WebSearch/WebSearchPlugin.cs b/Wox.Plugin.SystemPlugins/WebSearch/WebSearchPlugin.cs index 97fe4e505e..67e1687055 100644 --- a/Wox.Plugin.SystemPlugins/WebSearch/WebSearchPlugin.cs +++ b/Wox.Plugin.SystemPlugins/WebSearch/WebSearchPlugin.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; @@ -42,7 +42,7 @@ namespace Wox.Plugin.SystemPlugins IcoPath = webSearch.IconPath, Action = (c) => { - Process.Start(webSearch.Url.Replace("{q}", keyword)); + Process.Start(webSearch.Url.Replace("{q}", Uri.EscapeDataString(keyword))); return true; } } @@ -66,7 +66,7 @@ namespace Wox.Plugin.SystemPlugins IcoPath = webSearch.IconPath, Action = (c) => { - Process.Start(webSearch.Url.Replace("{q}", o)); + Process.Start(webSearch.Url.Replace("{q}", Uri.EscapeDataString(o))); return true; } }).ToList());