BUrl::Full() actually doesn't contain the protocol part, add it back for ftp so it understands it's an url. Add it for wget as well, doesn't hurt.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39638 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -279,6 +279,7 @@ UrlWrapper::ArgvReceived(int32 argc, char** argv)
|
||||
if (proto == "ftp") {
|
||||
BString cmd("ftp ");
|
||||
|
||||
cmd << proto << "://";
|
||||
/*
|
||||
if (user.Length())
|
||||
cmd << "-l " << user << " ";
|
||||
@@ -328,10 +329,11 @@ UrlWrapper::ArgvReceived(int32 argc, char** argv)
|
||||
return;
|
||||
}
|
||||
|
||||
if (proto == "http") {
|
||||
if (proto == "http" /*|| proto == "ftp"*/) {
|
||||
BString cmd("/bin/wget ");
|
||||
|
||||
//cmd << url;
|
||||
cmd << proto << "://";
|
||||
if (url.HasUser())
|
||||
cmd << user << "@";
|
||||
cmd << full;
|
||||
|
||||
Reference in New Issue
Block a user