diff options
author | David Robillard <d@drobilla.net> | 2018-06-13 17:11:13 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:12:04 +0200 |
commit | 6fcf2dce8d519b4fee2b7b891e3710061cca981c (patch) | |
tree | 3997ea2ed4a86d4c94afe7147653e444903b7dd7 /serd | |
parent | 9bbe2a22b4d8c320fc4d767b4b24d2b83270f6a5 (diff) | |
download | serd-6fcf2dce8d519b4fee2b7b891e3710061cca981c.tar.gz serd-6fcf2dce8d519b4fee2b7b891e3710061cca981c.tar.bz2 serd-6fcf2dce8d519b4fee2b7b891e3710061cca981c.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 fc2c4522..f2468157 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -625,15 +625,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. |