X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d81f6eac731b532053c67aa4290dcdfe5a30fd88..69659fd770f615210efac4b4fa741b3ad6223616:/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;