[gs-commits] mupdf 1.16.1.40 Bug 701572: Remember base URI when loadin
[email protected] (Tor Andersson)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit ed72a080cb658615876bbd2afc5838c476cbbf67 Author: Tor Andersson <[email protected]> Date: Fri Sep 13 11:21:21 2019 +0200 Bug 701572: Remember base URI when loading embedded SVG documents. Forgetting to copy the base URI caused us to not be able to find images referred to by SVG documents embedded in XHTML with an <svg> tag. diff --git a/source/svg/svg-doc.c b/source/svg/svg-doc.c index 4c353ba..f434b2a 100644 --- a/source/svg/svg-doc.c +++ b/source/svg/svg-doc.c @@ -90,6 +90,8 @@ svg_open_document_with_xml(fz_context *ctx, fz_xml *xml, const char *base_uri, f doc->super.load_page = svg_load_page; doc->idmap = NULL; + if (base_uri) + fz_strlcpy(doc->base_uri, base_uri, sizeof doc->base_uri); doc->xml = NULL; doc->root = xml; doc->zip = zip; http://git.ghostscript.com/?p=mupdf.git;a=commit;h=ed72a080cb658615876bbd2afc5838c476cbbf67 -- MuPDF library Artifex Software, Inc.