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 )
|
if ( fd->ShowModal() == wxID_OK )
|
||||||
{
|
{
|
||||||
wxString newValue = fd->GetPath();
|
wxString newValue = fd->GetPath();
|
||||||
newValue.Replace ( _T ( "\\" ), _T ( "/" ), true );
|
|
||||||
newValue.Replace ( _T ( " " ), _T ( "%20" ), true );
|
|
||||||
urlCtrl->SetValue ( newValue );
|
urlCtrl->SetValue ( newValue );
|
||||||
|
|
||||||
if ( mLastDir )
|
if ( mLastDir )
|
||||||
|
|
|
@ -44,7 +44,6 @@ XmlAssociateXsd::XmlAssociateXsd (
|
||||||
std::auto_ptr<XmlParseSchemaNs> parser ( new XmlParseSchemaNs() );
|
std::auto_ptr<XmlParseSchemaNs> parser ( new XmlParseSchemaNs() );
|
||||||
std::string normalisedPath, buffer;
|
std::string normalisedPath, buffer;
|
||||||
normalisedPath = path.mb_str ( wxConvLocal );
|
normalisedPath = path.mb_str ( wxConvLocal );
|
||||||
Replace::run ( normalisedPath, "%20", " ", true );
|
|
||||||
if ( !ReadFile::run ( normalisedPath, buffer ) )
|
if ( !ReadFile::run ( normalisedPath, buffer ) )
|
||||||
return;
|
return;
|
||||||
parser->parse ( buffer );
|
parser->parse ( buffer );
|
||||||
|
|
|
@ -711,9 +711,6 @@ MyFrame::MyFrame (
|
||||||
lastRelaxNGSchema =
|
lastRelaxNGSchema =
|
||||||
config->Read ( _T ( "lastRelaxNGSchema" ), wxEmptyString );
|
config->Read ( _T ( "lastRelaxNGSchema" ), wxEmptyString );
|
||||||
|
|
||||||
lastXslStylesheet.Replace ( _T ( " " ), _T ( "%20" ), true );
|
|
||||||
lastRelaxNGSchema.Replace ( _T ( " " ), _T ( "%20" ), true );
|
|
||||||
|
|
||||||
exportQuiet =
|
exportQuiet =
|
||||||
config->Read ( _T ( "exportQuiet" ), (long)true );
|
config->Read ( _T ( "exportQuiet" ), (long)true );
|
||||||
exportMp3Album =
|
exportMp3Album =
|
||||||
|
@ -4091,7 +4088,6 @@ void MyFrame::OnXslt ( wxCommandEvent& event )
|
||||||
std::string location = xl.getXslLocation();
|
std::string location = xl.getXslLocation();
|
||||||
|
|
||||||
path = wxString ( location.c_str(), wxConvUTF8, location.size() );
|
path = wxString ( location.c_str(), wxConvUTF8, location.size() );
|
||||||
path.Replace ( _T ( "%20" ), _T ( " " ), true );
|
|
||||||
|
|
||||||
path = PathResolver::run ( path, doc->getFullFileName() );
|
path = PathResolver::run ( path, doc->getFullFileName() );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue