From eb5391fc79f5bbe86435e27f2f5125e33e65b913 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 23 Apr 2009 15:02:07 -0300 Subject: [PATCH] obexd: 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. --- obexd/src/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/src/ftp.c b/obexd/src/ftp.c index e34d500f0..3d266499b 100644 --- a/obexd/src/ftp.c +++ b/obexd/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, -- 2.47.3