From: Magnus Jacobsson Date: Sun, 29 Mar 2020 14:20:56 +0000 (+0200) Subject: XML-escape xlink:href attribute in SVG X-Git-Tag: stable_release_2.42.4~9^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2b87beb0732c170f543dd031dbda4ad8e11bbcc;p=graphviz XML-escape xlink:href attribute in SVG Fixes https://gitlab.com/graphviz/graphviz/-/issues/1687 --- 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