From 1f73daa1dd55d7889c30c4b0893b541266aa460c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 30 Apr 2023 18:28:41 -0400 Subject: Constrain relative URI references to the base URI --- NEWS | 3 ++- src/sratom.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 5c4a8e1..e4f3a3c 100644 --- a/NEWS +++ b/NEWS @@ -4,8 +4,9 @@ sratom (0.6.15) unstable; urgency=medium * Fix dependencies in pkg-config file * Override pkg-config dependency within meson * Replace duplicated dox_to_sphinx script with sphinxygen dependency + * Constrain relative URI references to the base URI - -- David Robillard Sun, 04 Dec 2022 23:04:12 +0000 + -- David Robillard Sun, 30 Apr 2023 22:28:21 +0000 sratom (0.6.14) stable; urgency=medium diff --git a/src/sratom.c b/src/sratom.c index d2c18ef..447abef 100644 --- a/src/sratom.c +++ b/src/sratom.c @@ -800,7 +800,7 @@ read_node(Sratom* sratom, serd_uri_parse((const uint8_t*)str, &uri); SerdNode rel = - serd_node_new_relative_uri(&uri, &sratom->base, NULL, NULL); + serd_node_new_relative_uri(&uri, &sratom->base, &sratom->base, NULL); uint8_t* path = serd_file_uri_parse(rel.buf, NULL); if (path) { lv2_atom_forge_path( -- cgit v1.2.1