somewhat modded [ 1056879 ] use wxURI::Unescape vs wxURL::ConvertFromURI

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2004-10-29 20:19:49 +00:00
parent e313e308c0
commit 6cc280ca91
2 changed files with 2 additions and 10 deletions

View 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)