Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- === modified file 'dcpp/Util.cpp'
- --- dcpp/Util.cpp 2011-01-29 14:15:43 +0000
- +++ dcpp/Util.cpp 2011-02-11 11:29:34 +0000
- @@ -460,7 +460,7 @@
- fileStart = authorityEnd;
- }
- - protocol = url.substr(protoStart, protoEnd - protoStart);
- + protocol = (protoEnd == string::npos ? Util::emptyString : url.substr(protoStart, protoEnd - protoStart));
- if(authorityEnd > authorityStart) {
- dcdebug("x");
- @@ -499,7 +499,7 @@
- port = 80;
- } else if(protocol == "https") {
- port = 443;
- - } else if(protocol == "dchub") {
- + } else if(protocol == "dchub" || protocol.empty()) {
- port = 411;
- }
- } else {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement