]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ftp.cpp
Unused warning fix.
[wxWidgets.git] / src / common / ftp.cpp
index a2f4cad4afd6efdaf7e6df71620e3f4b6b423557..0a470ca93f1ba41d2f087c4a0362500e76c0b11a 100644 (file)
@@ -760,9 +760,6 @@ bool wxFTP::Abort()
 
 wxInputStream *wxFTP::GetInputStream(const wxString& path)
 {
-#if !wxUSE_URL
-    return NULL;
-#else
     if ( ( m_currentTransfermode == NONE ) && !SetTransferMode(BINARY) )
         return NULL;
 
@@ -774,7 +771,7 @@ wxInputStream *wxFTP::GetInputStream(const wxString& path)
         return NULL;
     }
 
-    wxString tmp_str = wxT("RETR ") + wxURL::ConvertFromURI(path);
+    wxString tmp_str = wxT("RETR ") + wxURI::Unescape(path);
     if ( !CheckCommand(tmp_str, '1') )
         return NULL;
 
@@ -789,7 +786,6 @@ wxInputStream *wxFTP::GetInputStream(const wxString& path)
     wxInputFTPStream *in_stream = new wxInputFTPStream(this, sock);
 
     return in_stream;
-#endif
 }
 
 wxOutputStream *wxFTP::GetOutputStream(const wxString& path)