From 68ce1d34990c79ada9eca14bf8d85dd86dd0a9e3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 21 Jun 2007 11:16:57 +0000 Subject: [PATCH] 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 --- src/common/filesys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;