From f522cedd1402019a3b61dac2ddb85e1a4ba4a759 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 3 Jan 2017 15:54:15 -0500 Subject: Always escape file URIs --- src/sord_validate.c | 2 +- src/sordi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/sord_validate.c b/src/sord_validate.c index 869ee1a..96e9584 100644 --- a/src/sord_validate.c +++ b/src/sord_validate.c @@ -676,7 +676,7 @@ main(int argc, char** argv) SerdURI base_uri; SerdNode base_uri_node = serd_node_new_file_uri( - in_path, NULL, &base_uri, false); + in_path, NULL, &base_uri, true); serd_env_set_base_uri(env, &base_uri_node); const SerdStatus st = serd_reader_read_file(reader, in_path); diff --git a/src/sordi.c b/src/sordi.c index 8ddbfb4..46e6273 100644 --- a/src/sordi.c +++ b/src/sordi.c @@ -149,7 +149,7 @@ main(int argc, char** argv) base = serd_node_new_uri_from_string( (const uint8_t*)argv[a], NULL, &base_uri); } else if (from_file && in_fd != stdin) { // Use input file URI - base = serd_node_new_file_uri(input, NULL, &base_uri, false); + base = serd_node_new_file_uri(input, NULL, &base_uri, true); } SordWorld* world = sord_world_new(); -- cgit v1.2.1