diff options
author | David Robillard <d@drobilla.net> | 2017-01-03 15:54:15 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-01-03 15:54:15 -0500 |
commit | f522cedd1402019a3b61dac2ddb85e1a4ba4a759 (patch) | |
tree | 6ba07166615fde16e5a878569990362ad58d7a41 /src | |
parent | f306bd871455b5eb27498e712ef605243df357d0 (diff) | |
download | sord-f522cedd1402019a3b61dac2ddb85e1a4ba4a759.tar.gz sord-f522cedd1402019a3b61dac2ddb85e1a4ba4a759.tar.bz2 sord-f522cedd1402019a3b61dac2ddb85e1a4ba4a759.zip |
Always escape file URIs
Diffstat (limited to 'src')
-rw-r--r-- | src/sord_validate.c | 2 | ||||
-rw-r--r-- | src/sordi.c | 2 |
2 files changed, 2 insertions, 2 deletions
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(); |