aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/url.hh
diff options
context:
space:
mode:
authorYorick van Pelt <yorick@yorickvanpelt.nl>2023-02-07 16:44:37 +0100
committerYorick van Pelt <yorick@yorickvanpelt.nl>2023-02-27 15:30:00 +0100
commit0844856c8487e2bdf66a2272622f6bbf6b8b5fb8 (patch)
tree86de55ef6faa44d877cff937748c1d30ed387e07 /src/libutil/url.hh
parent92611e6e4c1c5c712ca7d5f9a258640662d006df (diff)
url: make percentEncode stricter, expose and unit test it
Diffstat (limited to 'src/libutil/url.hh')
-rw-r--r--src/libutil/url.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/url.hh b/src/libutil/url.hh
index 2a9fb34c1..ddd673d65 100644
--- a/src/libutil/url.hh
+++ b/src/libutil/url.hh
@@ -22,6 +22,7 @@ struct ParsedURL
MakeError(BadURL, Error);
std::string percentDecode(std::string_view in);
+std::string percentEncode(std::string_view s, std::string_view keep="");
std::map<std::string, std::string> decodeQuery(const std::string & query);