fix to the previous commit: percent signs have to be escaped first
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
18ac7bef9e
commit
68ce1d3499
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user