summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-01-03 12:13:43 +0000
committersr55 <[email protected]>2011-01-03 12:13:43 +0000
commit3c26a1b029e0ee9ebb286df95f779428e9902155 (patch)
tree9c1391864693397ed5c841bf3cff8991ad7fc821 /win
parent25d1c7b528d88c8c80bb6a99c9d75120a55c80e1 (diff)
WinGui:
- Strip all escaping from encode job query string. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3725 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r--win/C#/HandBrake.ApplicationServices/Model/Job.cs14
1 files changed, 13 insertions, 1 deletions
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
/// </summary>
public class Job
{
+ private string query;
+
/// <summary>
/// Gets or sets the job ID.
/// </summary>
@@ -23,7 +25,17 @@ namespace HandBrake.ApplicationServices.Model
/// <summary>
/// Gets or sets the query string.
/// </summary>
- public string Query { get; set; }
+ public string Query
+ {
+ get
+ {
+ return this.query.Replace("\\\"", "\"").Replace("\\\\", "\\");
+ }
+ set
+ {
+ this.query = value;
+ }
+ }
/// <summary>
/// Gets or sets a value indicating whether if this is a user or GUI generated query