[gnome-commander] Replace gnome_vfs_escape_path_string with its glib version



commit 75b4a9ef8f30475ba7eb19a38986fefa436e5b50
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Thu Sep 30 23:25:55 2021 +0200

    Replace gnome_vfs_escape_path_string with its glib version

 src/gnome-cmd-con.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-con.cc b/src/gnome-cmd-con.cc
index 25c2575d..14a36b71 100644
--- a/src/gnome-cmd-con.cc
+++ b/src/gnome-cmd-con.cc
@@ -615,7 +615,7 @@ string &__gnome_cmd_con_make_uri (string &s, const gchar *method, gboolean use_a
         user += password;
     }
 
-    folder = stringify (gnome_vfs_escape_path_string (folder.c_str()));
+    folder = stringify (g_uri_escape_string (folder.c_str(), nullptr, true));
 
     s = method;
 
@@ -659,7 +659,7 @@ std::string &gnome_cmd_con_make_smb_uri (std::string &s, gboolean use_auth, std:
     const gchar *joinSign = !folder.empty() && folder[0] != '/' ? "/" : "";
 
     folder = share + joinSign + folder;
-    folder = stringify (gnome_vfs_escape_path_string (folder.c_str()));
+    folder = stringify (g_uri_escape_string (folder.c_str(), nullptr, true));
 
     s = "smb://";
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]