Percent-decode proxy username and password.
continuous-integration/drone/push Build was killed Details

This commit is contained in:
tastytea 2019-08-25 05:05:36 +02:00
parent c19f5681a2
commit d9d28dd707
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 6 additions and 2 deletions

View File

@ -58,10 +58,14 @@ void set_proxy()
if (regex_search(env_proxy, match, re_proxy))
{
string username, password;
Poco::URI::decode(match[1].str(), username);
Poco::URI::decode(match[2].str(), password);
proxyconfig.host = match[3].str();
proxyconfig.port = std::stoi(match[4].str());
proxyconfig.username = match[1].str();
proxyconfig.password = match[2].str();
proxyconfig.username = username;
proxyconfig.password = password;
HTTPSClientSession::setGlobalProxyConfig(proxyconfig);
}