Author: rgheck
Date: Wed Nov 2 19:57:14 2011
New Revision: 40132
URL: http://www.lyx.org/trac/changeset/40132
Log:
Fix bug reported on user list: <title> not escaped.
Modified:
lyx-devel/branches/BRANCH_2_0_X/src/Buffer.cpp
lyx-devel/branches/BRANCH_2_0_X/status.20x
Modified: lyx-devel/branches/BRANCH_2_0_X/src/Buffer.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/src/Buffer.cpp Wed Nov 2 19:42:10
2011 (r40131)
+++ lyx-devel/branches/BRANCH_2_0_X/src/Buffer.cpp Wed Nov 2 19:57:14
2011 (r40132)
@@ -1657,7 +1657,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"
Modified: lyx-devel/branches/BRANCH_2_0_X/status.20x
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/status.20x Wed Nov 2 19:42:10 2011
(r40131)
+++ lyx-devel/branches/BRANCH_2_0_X/status.20x Wed Nov 2 19:57:14 2011
(r40132)
@@ -162,6 +162,8 @@
- Fix latex export of multilingual documents containing theorem-like
environments (bug 7800).
+- Escape ampersands in <title> when outputting XHTML.
+
* USER INTERFACE