Tue, 07 Aug 2007 20:20:28 +0000
- tls_peers pool unescapes filenames in its directory, as it should
| libpurple/certificate.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/certificate.c Tue Aug 07 04:53:50 2007 +0000 +++ b/libpurple/certificate.c Tue Aug 07 20:20:28 2007 +0000 @@ -665,9 +665,12 @@ /* Traverse the directory listing and create an idlist */ while ( (entry = g_dir_read_name(dir)) != NULL ) { + /* Unescape the filename */ + const char *unescaped = purple_unescape_filename(entry); + /* Copy the entry name into our list (GLib owns the original string) */ - idlist = g_list_prepend(idlist, g_strdup(entry)); + idlist = g_list_prepend(idlist, g_strdup(unescaped)); } /* Release the directory */