gaim/gaim

Parents 16e1a01a7fbd
Children c0f694f32e98
This was removed when changes were made to specify that the http:// handler should open the file. Judging by the number of bug reports, it is still necessary.
--- a/src/protocols/msn/notification.c Tue Feb 22 21:56:31 2005 -0500
+++ b/src/protocols/msn/notification.c Tue Feb 22 22:52:02 2005 -0500
@@ -971,6 +971,28 @@
g_free(session->passport_info.file);
session->passport_info.file = NULL;
}
+ else
+ {
+ /*
+ * Renaming file with .html extension, so that the
+ * win32 open_url will work.
+ */
+ char *tmp;
+
+ if ((tmp =
+ g_strdup_printf("%s.html",
+ session->passport_info.file)) != NULL)
+ {
+ if (g_rename(session->passport_info.file,
+ tmp) == 0)
+ {
+ g_free(session->passport_info.file);
+ session->passport_info.file = tmp;
+ }
+ else
+ g_free(tmp);
+ }
+ }
}
}
/**************************************************************************