Changeset c1a754986c3b…
Parent 339764f94377…
by
Changes to one file · Browse files at c1a754986c3b Showing diff from parent 339764f94377 Diff from another changeset...
@@ -18,6 +18,7 @@
#include "TortoiseHgKeyboard.h"
#include "TortoiseUtils.h"
+#include "StringUtils.h"
#include "RunDialog.h"
#include "GlobalData.h"
@@ -142,6 +143,11 @@ strFolder = bstrURL;
::SysFreeString(bstrURL);
+ // Unescape the URL.
+ LPTSTR lpszFolder = strFolder.LockBuffer();
+ ::UrlUnescape(lpszFolder, NULL, NULL, URL_UNESCAPE_INPLACE);
+ strFolder.UnlockBuffer();
+
// Check if it's a file URL and extract the path.
if (StartsWith(strFolder, FILE_PREFIX))
{
|
Loading...