summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-04-23 15:02:07 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-04-23 15:02:07 -0300
commitcbdeac1dd26b60998cb0c33956bc38dce921cef4 (patch)
tree2e0a6597a18464d4fbdadbfa2fe083fcb878d385
parentf130cb11c9d131a0fa67e6512bdb956d66837f65 (diff)
downloadobexd-cbdeac1dd26b60998cb0c33956bc38dce921cef4.tar.gz
Fix escape on filenames.
Make use of g_markup_escape_text instead of g_uri_escape_string, so filenames are escaped accourding to the XML rules of normalization.
-rw-r--r--src/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ftp.c b/src/ftp.c
index e34d500..3d26649 100644
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -94,7 +94,7 @@ static gchar *file_stat_line(gchar *filename, struct stat *fstat,
strftime(ctime, 17, "%Y%m%dT%H%M%SZ", gmtime(&fstat->st_ctime));
strftime(mtime, 17, "%Y%m%dT%H%M%SZ", gmtime(&fstat->st_mtime));
- escaped = g_uri_escape_string(filename, " ", TRUE);
+ escaped = g_markup_escape_text(filename, -1);
if (S_ISDIR(fstat->st_mode))
ret = g_strdup_printf(FL_FOLDER_ELEMENT, escaped,