comparison libpurple/certificate.c @ 19009:b64aa0222a7a

- pool_mkpath now runs purple_escape_filename on its return value
author William Ehlhardt <williamehlhardt@gmail.com>
date Mon, 09 Jul 2007 04:45:37 +0000
parents 7fd9bd55f8d0
children 0d4b84820390
comparison
equal deleted inserted replaced
19008:7fd9bd55f8d0 19009:b64aa0222a7a
205 205
206 206
207 gchar * 207 gchar *
208 purple_certificate_pool_mkpath(PurpleCertificatePool *pool, const gchar *id) 208 purple_certificate_pool_mkpath(PurpleCertificatePool *pool, const gchar *id)
209 { 209 {
210 gchar *path; 210 gchar *path, *path2;
211 211
212 g_return_val_if_fail(pool, NULL); 212 g_return_val_if_fail(pool, NULL);
213 g_return_val_if_fail(pool->scheme_name, NULL); 213 g_return_val_if_fail(pool->scheme_name, NULL);
214 g_return_val_if_fail(pool->name, NULL); 214 g_return_val_if_fail(pool->name, NULL);
215 215
217 "certificates", /* TODO: constantize this? */ 217 "certificates", /* TODO: constantize this? */
218 pool->scheme_name, 218 pool->scheme_name,
219 pool->name, 219 pool->name,
220 id, 220 id,
221 NULL); 221 NULL);
222 return path; 222
223 path2 = g_strdup(purple_escape_filename(path));
224
225 g_free(path);
226 return path2;
223 } 227 }
224 228
225 gboolean 229 gboolean
226 purple_certificate_pool_contains(PurpleCertificatePool *pool, const gchar *id) 230 purple_certificate_pool_contains(PurpleCertificatePool *pool, const gchar *id)
227 { 231 {