From 6b6ab5e75210ff5a1c26ba11ad8fe30cc7ab205e Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Sun, 8 Mar 2015 14:58:14 +0800 Subject: [PATCH] fix #249 Characters not being properly escaped in Python plugins --- Wox.Core/Plugin/JsonPRCModel.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Wox.Core/Plugin/JsonPRCModel.cs b/Wox.Core/Plugin/JsonPRCModel.cs index 902d12e526..2ea8fa8c9a 100644 --- a/Wox.Core/Plugin/JsonPRCModel.cs +++ b/Wox.Core/Plugin/JsonPRCModel.cs @@ -89,9 +89,9 @@ namespace Wox.Core.Plugin private string RepalceEscapes(string str) { - return str.Replace(@"\", @"\\") //Escapes in ProcessStartInfo - .Replace(@"\", @"\\"); //Escapes itself when passed to client - //todo: replace " + return str.Replace(@"\", @"\\") //Escapes in ProcessStartInfo + .Replace(@"\", @"\\") //Escapes itself when passed to client + .Replace(@"""", @"\\"""""); } }