tomboy r2271 - in trunk: . Tomboy



Author: sharm
Date: Thu Jan  8 01:02:50 2009
New Revision: 2271
URL: http://svn.gnome.org/viewvc/tomboy?rev=2271&view=rev

Log:
* tomboy/Tomboy/NoteManager.cs: Don't forget to XML encode title text
  when there's a template note. Fixes crash when using link button to
  create notes with & or < in the title (bug #566967).

Modified:
   trunk/ChangeLog
   trunk/Tomboy/NoteManager.cs

Modified: trunk/Tomboy/NoteManager.cs
==============================================================================
--- trunk/Tomboy/NoteManager.cs	(original)
+++ trunk/Tomboy/NoteManager.cs	Thu Jan  8 01:02:50 2009
@@ -377,7 +377,8 @@
 			if (note_template != null) {
 				// Use the body from the "New Note Template" note
 				string xml_content =
-					note_template.XmlContent.Replace (NoteTemplateTitle, title);
+					note_template.XmlContent.Replace (NoteTemplateTitle,
+					                                  XmlEncoder.Encode (title));
 				return CreateNewNote (title, xml_content, guid);
 			}
 			



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