From e2b87beb0732c170f543dd031dbda4ad8e11bbcc Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 29 Mar 2020 16:20:56 +0200 Subject: [PATCH] XML-escape xlink:href attribute in SVG Fixes https://gitlab.com/graphviz/graphviz/-/issues/1687 --- plugin/core/gvrender_core_svg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/core/gvrender_core_svg.c b/plugin/core/gvrender_core_svg.c index a24b53365..141175d5f 100644 --- a/plugin/core/gvrender_core_svg.c +++ b/plugin/core/gvrender_core_svg.c @@ -350,7 +350,7 @@ svg_begin_anchor(GVJ_t * job, char *href, char *tooltip, char *target, #endif if (href && href[0]) { gvputs(job, " xlink:href=\""); - gvputs(job, href); + gvputs(job, xml_url_string(href)); gvputs(job, "\""); } #if 0 -- 2.50.1