From d1802a52345c83a928aed2497c23a03c3f8905ba Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 2 Nov 2011 18:42:10 +0000 Subject: [PATCH] Fix bug reported on user list: not escaped. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40131 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 504bacdb9a..625c0fffee 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1714,7 +1714,9 @@ void Buffer::writeLyXHTMLSource(odocstream & os, 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)) << "\n"; os << "\n\n" -- 2.39.2