changeset 19078:3987f76c0e4b

- tls_peers pool unescapes filenames in its directory, as it should
author William Ehlhardt <williamehlhardt@gmail.com>
date Tue, 07 Aug 2007 20:20:28 +0000
parents 8275c3cbc9da
children 05ae340c42cc
files libpurple/certificate.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 */