Author: rgheck
Date: Wed Nov  2 19:42:10 2011
New Revision: 40131
URL: http://www.lyx.org/trac/changeset/40131

Log:
Fix bug reported on user list: <title> not escaped.

Modified:
   lyx-devel/trunk/src/Buffer.cpp

Modified: lyx-devel/trunk/src/Buffer.cpp
==============================================================================
--- lyx-devel/trunk/src/Buffer.cpp      Wed Nov  2 19:14:29 2011        (r40130)
+++ lyx-devel/trunk/src/Buffer.cpp      Wed Nov  2 19:42:10 2011        (r40131)
@@ -1714,7 +1714,9 @@
 
                docstring const & doctitle = features.htmlTitle();
                os << "<title>"
-                  << (doctitle.empty() ? from_ascii("LyX Document") : doctitle)
+                  << (doctitle.empty() ? 
+                        from_ascii("LyX Document") : 
+                        html::htmlize(doctitle, XHTMLStream::ESCAPE_ALL))
                   << "</title>\n";
 
                os << "\n<!-- Text Class Preamble -->\n"

Reply via email to