Don't escape file names partially
This commit is contained in:
parent
51b1bd3829
commit
47483ca5d8
|
@ -182,8 +182,6 @@ void AssociateDialog::OnBrowse ( wxCommandEvent& e )
|
|||
if ( fd->ShowModal() == wxID_OK )
|
||||
{
|
||||
wxString newValue = fd->GetPath();
|
||||
newValue.Replace ( _T ( "\\" ), _T ( "/" ), true );
|
||||
newValue.Replace ( _T ( " " ), _T ( "%20" ), true );
|
||||
urlCtrl->SetValue ( newValue );
|
||||
|
||||
if ( mLastDir )
|
||||
|
|
|
@ -44,7 +44,6 @@ XmlAssociateXsd::XmlAssociateXsd (
|
|||
std::auto_ptr<XmlParseSchemaNs> parser ( new XmlParseSchemaNs() );
|
||||
std::string normalisedPath, buffer;
|
||||
normalisedPath = path.mb_str ( wxConvLocal );
|
||||
Replace::run ( normalisedPath, "%20", " ", true );
|
||||
if ( !ReadFile::run ( normalisedPath, buffer ) )
|
||||
return;
|
||||
parser->parse ( buffer );
|
||||
|
|
|
@ -711,9 +711,6 @@ MyFrame::MyFrame (
|
|||
lastRelaxNGSchema =
|
||||
config->Read ( _T ( "lastRelaxNGSchema" ), wxEmptyString );
|
||||
|
||||
lastXslStylesheet.Replace ( _T ( " " ), _T ( "%20" ), true );
|
||||
lastRelaxNGSchema.Replace ( _T ( " " ), _T ( "%20" ), true );
|
||||
|
||||
exportQuiet =
|
||||
config->Read ( _T ( "exportQuiet" ), (long)true );
|
||||
exportMp3Album =
|
||||
|
@ -4091,7 +4088,6 @@ void MyFrame::OnXslt ( wxCommandEvent& event )
|
|||
std::string location = xl.getXslLocation();
|
||||
|
||||
path = wxString ( location.c_str(), wxConvUTF8, location.size() );
|
||||
path.Replace ( _T ( "%20" ), _T ( " " ), true );
|
||||
|
||||
path = PathResolver::run ( path, doc->getFullFileName() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue