[longomatch] Escape strings in more places



commit 53297006183246183997098b10256f6e62eadf47
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Mar 9 17:46:29 2014 +0100

    Escape strings in more places

 LongoMatch.Core/Store/Play.cs                     |    2 +-
 LongoMatch.GUI/Gui/Component/ProjectListWidget.cs |   10 +++++-----
 LongoMatch.GUI/Gui/TreeView/ListTreeViewBase.cs   |    2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Play.cs b/LongoMatch.Core/Store/Play.cs
index 3adf89c..32c57dc 100644
--- a/LongoMatch.Core/Store/Play.cs
+++ b/LongoMatch.Core/Store/Play.cs
@@ -231,7 +231,7 @@ namespace LongoMatch.Store
                
                public override string ToString()
                {
-                       return  Name + "\n" + Start.ToMSecondsString() + " - " + Stop.ToMSecondsString();
+                       return Name + "\n" + Start.ToMSecondsString() + " - " + Stop.ToMSecondsString();
                }
                #endregion
        }
diff --git a/LongoMatch.GUI/Gui/Component/ProjectListWidget.cs 
b/LongoMatch.GUI/Gui/Component/ProjectListWidget.cs
index 65e54de..61d580d 100644
--- a/LongoMatch.GUI/Gui/Component/ProjectListWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/ProjectListWidget.cs
@@ -131,11 +131,11 @@ namespace LongoMatch.Gui.Component
                        string text;
                        ProjectDescription project = (ProjectDescription) model.GetValue(iter, 0);
 
-                       text = "<b>"+Catalog.GetString("Title")+":</b>  " + project.Title;
-                       text = text +"\n"+"<b>"+Catalog.GetString("Local team")+":</b>  " + project.LocalName;
-                       text = text +"\n"+"<b>"+Catalog.GetString("Visitor team")+":</b>  " + 
project.VisitorName;
-                       text = text +"\n"+"<b>"+Catalog.GetString("Season")+":</b>  " + project.Season;
-                       text = text +"\n"+"<b>"+Catalog.GetString("Competition")+":</b>  " + 
project.Competition;
+                       text = "<b>"+Catalog.GetString("Title")+":</b>  " + GLib.Markup.EscapeText 
(project.Title);
+                       text = text +"\n"+"<b>"+Catalog.GetString("Local team")+":</b>  " + 
GLib.Markup.EscapeText (project.LocalName);
+                       text = text +"\n"+"<b>"+Catalog.GetString("Visitor team")+":</b>  " + 
GLib.Markup.EscapeText (project.VisitorName);
+                       text = text +"\n"+"<b>"+Catalog.GetString("Season")+":</b>  " + 
GLib.Markup.EscapeText (project.Season);
+                       text = text +"\n"+"<b>"+Catalog.GetString("Competition")+":</b>  " + 
GLib.Markup.EscapeText (project.Competition);
                        text = text +"\n"+"<b>"+Catalog.GetString("Result")+":</b>  " + 
project.LocalGoals+"-"+ project.VisitorGoals;
                        if (project.Title == Constants.FAKE_PROJECT) {
                                text = text +"\n"+"<b>"+Catalog.GetString("Date")+":</b>  " + 
project.LastModified.ToShortDateString() +
diff --git a/LongoMatch.GUI/Gui/TreeView/ListTreeViewBase.cs b/LongoMatch.GUI/Gui/TreeView/ListTreeViewBase.cs
index b6d5fcf..e7ee949 100644
--- a/LongoMatch.GUI/Gui/TreeView/ListTreeViewBase.cs
+++ b/LongoMatch.GUI/Gui/TreeView/ListTreeViewBase.cs
@@ -262,7 +262,7 @@ namespace LongoMatch.Gui.Component
                                        c.Background = "white";
                                        c.CellBackground = "white";
                                }
-                               c.Markup = mtn.ToString();
+                               c.Markup = GLib.Markup.EscapeText (mtn.ToString());
                        } else if(o is Player) {
                                c.Background = "white";
                                c.CellBackground = "white";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]