From 553a7bf7e1b7be2f602e0230ddfc7f882b009cf8 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Fri, 19 Dec 2014 15:40:26 +0100 Subject: Bug 738167 - Entity references in XML command attributes are incorrectly handled --- src/docparser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/docparser.cpp b/src/docparser.cpp index 4d77537..c356afd 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -232,7 +232,8 @@ static void docParserPopContext(bool keepParamInfo=FALSE) //--------------------------------------------------------------------------- -// replaces { with < and } with > inside string s +// replaces { with < and } with > and also +// replaces > with < and > with > within string s static void unescapeCRef(QCString &s) { char *p = s.data(); @@ -245,6 +246,9 @@ static void unescapeCRef(QCString &s) *p++=c; } } + + s=substitute(s,"<","<"); + s=substitute(s,">",">"); } //--------------------------------------------------------------------------- -- cgit v0.12