X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d81f6eac731b532053c67aa4290dcdfe5a30fd88..291b0f5b14b62be240ae5cb1ec2ade3d8db6a776:/src/common/filesys.cpp diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index db370fd11a..038e55407f 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -661,8 +661,8 @@ wxString wxFileSystem::FileNameToURL(const wxFileName& filename) #endif url.Replace(g_nativePathString, g_unixPathString); + url.Replace(wxT("%"), wxT("%25")); // '%'s must be replaced first! url.Replace(wxT("#"), wxT("%23")); - url.Replace(wxT("%"), wxT("%25")); url.Replace(wxT(":"), wxT("%3A")); url = wxT("file:") + url; return url;