From 3c26a1b029e0ee9ebb286df95f779428e9902155 Mon Sep 17 00:00:00 2001 From: sr55 Date: Mon, 3 Jan 2011 12:13:43 +0000 Subject: [PATCH] WinGui: - Strip all escaping from encode job query string. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3725 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/HandBrake.ApplicationServices/Model/Job.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/win/C#/HandBrake.ApplicationServices/Model/Job.cs b/win/C#/HandBrake.ApplicationServices/Model/Job.cs index 536069153..07f84b4f3 100644 --- a/win/C#/HandBrake.ApplicationServices/Model/Job.cs +++ b/win/C#/HandBrake.ApplicationServices/Model/Job.cs @@ -10,6 +10,8 @@ namespace HandBrake.ApplicationServices.Model /// public class Job { + private string query; + /// /// Gets or sets the job ID. /// @@ -23,7 +25,17 @@ namespace HandBrake.ApplicationServices.Model /// /// Gets or sets the query string. /// - public string Query { get; set; } + public string Query + { + get + { + return this.query.Replace("\\\"", "\"").Replace("\\\\", "\\"); + } + set + { + this.query = value; + } + } /// /// Gets or sets a value indicating whether if this is a user or GUI generated query -- 2.40.0