From d490379a0860b78882564610e87a726c69e7da24 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 4 Sep 2010 13:47:08 +0200 Subject: The get command now takes uri-encoded filenames to handle spaces. --- commands.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands.c b/commands.c index 577bee6..fab8b18 100644 --- a/commands.c +++ b/commands.c @@ -200,9 +200,13 @@ static void commands_get(GSocketConnection *connection, const gchar *cmd, GError } } + gchar *localfile = g_uri_unescape_string(data[2], NULL); + gchar *remotefile = g_uri_unescape_string(data[4], NULL); - server_get(server, data[1], data[2], data[4]); + server_get(server, data[1], localfile, remotefile); + g_free(localfile); + g_free(remotefile); g_strfreev(data); } -- cgit v1.2.3