From 06e2669b354561ebafcd69c24d0319d47ba1d279 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 8 Jan 2017 13:38:48 -0500 Subject: [PATCH] Escape link name for DocBook. Thanks to Martin Brown for pointing out the bug, and the obvious solution. --- src/insets/InsetHyperlink.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp index 8b3433c944..3160c0b001 100644 --- a/src/insets/InsetHyperlink.cpp +++ b/src/insets/InsetHyperlink.cpp @@ -22,6 +22,7 @@ #include "LaTeXFeatures.h" #include "OutputParams.h" #include "output_xhtml.h" +#include "sgml.h" #include "texstream.h" #include "support/docstream.h" @@ -233,7 +234,7 @@ int InsetHyperlink::docbook(odocstream & os, OutputParams const &) const os << "" - << getParam("name") + << sgml::escapeString(getParam("name")) << ""; return 0; } -- 2.39.2