aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-13 17:11:13 -0400
committerDavid Robillard <d@drobilla.net>2022-01-13 15:33:54 -0500
commitecaf46fe09a97fbe6e9c26e8799387dbf3b76070 (patch)
tree0401f829df441e7ff3d0279288ff00f712937531 /include
parent3bf99421c04fdcc789745b7c59fc9bee8edce06b (diff)
downloadserd-ecaf46fe09a97fbe6e9c26e8799387dbf3b76070.tar.gz
serd-ecaf46fe09a97fbe6e9c26e8799387dbf3b76070.tar.bz2
serd-ecaf46fe09a97fbe6e9c26e8799387dbf3b76070.zip
Remove escape parameter from serd_node_new_file_uri
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.
Diffstat (limited to 'include')
-rw-r--r--include/serd/serd.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index 773574f0..0d9a4444 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -405,9 +405,8 @@ serd_node_new_uri_from_string(const uint8_t* SERD_NULLABLE str,
/**
Create a new file URI node from a file system path and optional hostname.
- Backslashes in Windows paths will be converted and '%' will always be
- percent encoded. If `escape` is true, all other invalid characters will be
- percent encoded as well.
+ Backslashes in Windows paths will be converted, and other characters will be
+ percent encoded as necessary.
If `path` is relative, `hostname` is ignored.
If `out` is not NULL, it will be set to the parsed URI.
@@ -416,8 +415,7 @@ SERD_API
SerdNode
serd_node_new_file_uri(const uint8_t* SERD_NONNULL path,
const uint8_t* SERD_NULLABLE hostname,
- SerdURI* SERD_NULLABLE out,
- bool escape);
+ SerdURI* SERD_NULLABLE out);
/**
Create a new node by serialising `uri` into a new string.