diff options
author | David Robillard <d@drobilla.net> | 2018-06-13 17:11:13 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-07 15:32:23 -0500 |
commit | 6e856d3e7a9c3162b9af350d5cec8a3f6bb94ee2 (patch) | |
tree | 35c1780b24c02daa1f1ed54ba9b664b20f2f526b /include | |
parent | a35d0782c0fb5a52d77dede6b0bffee4e7fdefbd (diff) | |
download | serd-6e856d3e7a9c3162b9af350d5cec8a3f6bb94ee2.tar.gz serd-6e856d3e7a9c3162b9af350d5cec8a3f6bb94ee2.tar.bz2 serd-6e856d3e7a9c3162b9af350d5cec8a3f6bb94ee2.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.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h index 5d5803d0..0d760f09 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -455,9 +455,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. @@ -466,8 +465,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. |