Browse Source

Merge remote-tracking branch 'purple/openssl'

pull/557/head
Jeff Becker 9 years ago
parent
commit
1362177352
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 3
      HTTP.cpp

3
HTTP.cpp

@ -85,7 +85,8 @@ namespace http { @@ -85,7 +85,8 @@ namespace http {
}
/* user[:pass] */
pos_c = url.find('@', pos_p);
if (pos_c != std::string::npos) {
std::size_t pos_slash = url.find('/', pos_p);
if (pos_c != std::string::npos && (pos_slash == std::string::npos || pos_slash > pos_c)) {
std::size_t delim = url.find(':', pos_p);
if (delim != std::string::npos && delim < pos_c) {
user = url.substr(pos_p, delim - pos_p);

Loading…
Cancel
Save