[gnome-commander] Replace gnome_vfs_escape_path_string with its glib version
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Replace gnome_vfs_escape_path_string with its glib version
- Date: Thu, 30 Sep 2021 21:26:09 +0000 (UTC)
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]