diff options
author | David Robillard <d@drobilla.net> | 2018-06-13 17:11:13 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | 93e54363f5ae251acee94051f77305f60f0158c8 (patch) | |
tree | 3fc4e6166ba3d4525446a046a237b66fc9b0c134 /serd | |
parent | 06b775c1de2173720fe12abec2fbe225c353a12b (diff) | |
download | serd-93e54363f5ae251acee94051f77305f60f0158c8.tar.gz serd-93e54363f5ae251acee94051f77305f60f0158c8.tar.bz2 serd-93e54363f5ae251acee94051f77305f60f0158c8.zip |
Remove escape parameter from serd_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 'serd')
-rw-r--r-- | serd/serd.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/serd/serd.h b/serd/serd.h index e576398b..1f30065b 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -629,15 +629,14 @@ serd_node_resolve(const SerdNode* node, const SerdNode* base); /** 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. */ SERD_API SerdNode* -serd_new_file_uri(const char* path, const char* hostname, bool escape); +serd_new_file_uri(const char* path, const char* hostname); /** Create a new URI from a string, relative to a base URI. |