diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-04-23 15:02:07 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-04-23 15:02:07 -0300 |
commit | cbdeac1dd26b60998cb0c33956bc38dce921cef4 (patch) | |
tree | 2e0a6597a18464d4fbdadbfa2fe083fcb878d385 /src/ftp.c | |
parent | f130cb11c9d131a0fa67e6512bdb956d66837f65 (diff) | |
download | obexd-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.
Diffstat (limited to 'src/ftp.c')
-rw-r--r-- | src/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |