]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filesys.cpp
changing guard to support popupwindows as well
[wxWidgets.git] / src / common / filesys.cpp
index db370fd11a9ccb4536a7aeb6448cf0ebb0330aab..038e55407fb989b4b18b83a29f7c535414c3bdaf 100644 (file)
@@ -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;