3 --- src/FtpConnection.cc.orig 2007-08-28 12:36:33.000000000 -0400
4 +++ src/FtpConnection.cc
5 @@ -73,13 +73,13 @@ void FtpConnection::sendType() const {
8 void FtpConnection::sendCwd() const {
9 - string request = "CWD "+req->getDir()+"\r\n";
10 + string request = "CWD "+Util::urldecode(req->getDir())+"\r\n";
11 logger->info(MSG_SENDING_REQUEST, cuid, request.c_str());
12 socket->writeData(request);
15 void FtpConnection::sendSize() const {
16 - string request = "SIZE "+req->getFile()+"\r\n";
17 + string request = "SIZE "+Util::urldecode(req->getFile())+"\r\n";
18 logger->info(MSG_SENDING_REQUEST, cuid, request.c_str());
19 socket->writeData(request);
21 @@ -116,7 +116,7 @@ void FtpConnection::sendRest(const Segme
24 void FtpConnection::sendRetr() const {
25 - string request = "RETR "+req->getFile()+"\r\n";
26 + string request = "RETR "+Util::urldecode(req->getFile())+"\r\n";
27 logger->info(MSG_SENDING_REQUEST, cuid, request.c_str());
28 socket->writeData(request);