diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-09-04 13:47:08 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-09-04 13:47:08 +0200 |
commit | d490379a0860b78882564610e87a726c69e7da24 (patch) | |
tree | d5313480b836ffd3f42bb15831e5f5b4e940f360 | |
parent | 9f4a4db934fad71eb7cf33f9ccac9b3cf80d1a55 (diff) |
The get command now takes uri-encoded filenames to handle spaces.
-rw-r--r-- | commands.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); } |