[gnote] Fix export to HTML with XML special chars in title
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix export to HTML with XML special chars in title
- Date: Sat, 2 Mar 2013 20:50:42 +0000 (UTC)
commit bd452619e48979e2359453298b6595053ef3a5c0
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Mar 2 22:47:21 2013 +0200
Fix export to HTML with XML special chars in title
Fixes Bug 694935.
src/addins/exporttohtml/exporttohtmlnoteaddin.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
b/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
index d96f8b5..2fa2cd9 100644
--- a/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
+++ b/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010-2012 Aurimas Cernius
+ * Copyright (C) 2010-2013 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -251,7 +251,7 @@ void ExportToHtmlNoteAddin::write_html_for_note (sharp::StreamWriter & writer,
sharp::XsltArgumentList args;
args.add_param ("export-linked", "", export_linked);
args.add_param ("export-linked-all", "", export_linked_all);
- args.add_param ("root-note", "", note->get_title());
+ args.add_param ("root-note", "", gnote::utils::XmlEncoder::encode(note->get_title()));
Glib::RefPtr<Gio::Settings> settings = Preferences::obj().get_schema_settings(Preferences::SCHEMA_GNOTE);
if (settings->get_boolean(Preferences::ENABLE_CUSTOM_FONT)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]