mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Prefer regex to manual parsing in parseURL:
Although `parseURL` used a regex to pull the authority out of the URL being parsed, it performed manual parsing of the hostname and port. This commit rolls the parsing of the username and password, if any, directly into the regex. The hostname can be a name, an IPv4 or an IPv6 address. Fixes #2751
This commit is contained in:
committed by
Nik Bougalis
parent
c1a02440dc
commit
dc4d76f626
@@ -70,6 +70,8 @@ struct parsedURL
|
||||
explicit parsedURL() = default;
|
||||
|
||||
std::string scheme;
|
||||
std::string username;
|
||||
std::string password;
|
||||
std::string domain;
|
||||
boost::optional<std::uint16_t> port;
|
||||
std::string path;
|
||||
|
||||
Reference in New Issue
Block a user