# HG changeset patch # User William Ehlhardt # Date 1186518028 0 # Node ID 3987f76c0e4b59eb3671643d78d47c8d51b3aba7 # Parent 8275c3cbc9daa47e9b036b5596423c3814bf8c3e - tls_peers pool unescapes filenames in its directory, as it should diff -r 8275c3cbc9da -r 3987f76c0e4b libpurple/certificate.c --- 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 */