Mercurial > pidgin
comparison libpurple/certificate.c @ 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 | 3bdede51c007 |
comparison
equal
deleted
inserted
replaced
19077:8275c3cbc9da | 19078:3987f76c0e4b |
---|---|
663 | 663 |
664 g_return_val_if_fail(dir, NULL); | 664 g_return_val_if_fail(dir, NULL); |
665 | 665 |
666 /* Traverse the directory listing and create an idlist */ | 666 /* Traverse the directory listing and create an idlist */ |
667 while ( (entry = g_dir_read_name(dir)) != NULL ) { | 667 while ( (entry = g_dir_read_name(dir)) != NULL ) { |
668 /* Unescape the filename */ | |
669 const char *unescaped = purple_unescape_filename(entry); | |
670 | |
668 /* Copy the entry name into our list (GLib owns the original | 671 /* Copy the entry name into our list (GLib owns the original |
669 string) */ | 672 string) */ |
670 idlist = g_list_prepend(idlist, g_strdup(entry)); | 673 idlist = g_list_prepend(idlist, g_strdup(unescaped)); |
671 } | 674 } |
672 | 675 |
673 /* Release the directory */ | 676 /* Release the directory */ |
674 g_dir_close(dir); | 677 g_dir_close(dir); |
675 | 678 |