diff options
author | Jan Engelhardt <[email protected]> | 2024-01-30 11:38:41 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-01-30 11:38:41 +0000 |
commit | 874a1d8c33ef80402be95a1ebee01902e14f12e4 (patch) | |
tree | f9ab1cbf69df0010c2d273357f65f50564d5b1d3 /src/vmime/utility/urlUtils.hpp | |
parent | Fixed confusing source/bin dirs in makefile. (#291) (diff) | |
download | vmime-874a1d8c33ef80402be95a1ebee01902e14f12e4.tar.gz vmime-874a1d8c33ef80402be95a1ebee01902e14f12e4.zip |
url: support IPv6 literals (RFC 2732) (#292)
Diffstat (limited to '')
-rw-r--r-- | src/vmime/utility/urlUtils.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vmime/utility/urlUtils.hpp b/src/vmime/utility/urlUtils.hpp index 54ffa2ac..63689816 100644 --- a/src/vmime/utility/urlUtils.hpp +++ b/src/vmime/utility/urlUtils.hpp @@ -44,6 +44,10 @@ public: */ static const string encode(const string& s); + /** Encode the host portion of a URL string. + */ + static const string encodeHost(const string& s); + /** Decode an hex-encoded URL (see encode()). */ static const string decode(const string& s); |