Mercurial > pidgin.yaz
diff src/protocols/msn/notification.c @ 7699:04f9c750657f
[gaim-migrate @ 8344]
" There is an irritating typo that causes a "hidden" form
field in the temp html file used for redirecting to
hotmail to appear visible. Very short patch attached :)"
--Bill Crawford (billcrawford)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 02 Dec 2003 14:25:55 +0000 |
parents | 3a48ade4f510 |
children | 954b986ad3e3 |
line wrap: on
line diff
--- a/src/protocols/msn/notification.c Tue Dec 02 14:04:48 2003 +0000 +++ b/src/protocols/msn/notification.c Tue Dec 02 14:25:55 2003 +0000 @@ -1810,7 +1810,7 @@ fprintf(fd, "<input type=\"hidden\" name=\"creds\" value=\"%s\">\n", sendbuf); /* TODO Digest me (huh? -- ChipX86) */ fprintf(fd, "<input type=\"hidden\" name=\"svc\" value=\"mail\">\n"); - fprintf(fd, "<input type=\"hiden\" name=\"js\" value=\"yes\">\n"); + fprintf(fd, "<input type=\"hidden\" name=\"js\" value=\"yes\">\n"); fprintf(fd, "</form></body>\n"); fprintf(fd, "</html>\n"); @@ -2026,14 +2026,19 @@ unread = g_hash_table_lookup(table, "Inbox-Unread"); if (unread != NULL) { - const char *passport = msn_user_get_passport(session->user); - const char *url = session->passport_info.file; int count = atoi(unread); if (count != 0) { + const char *passport = msn_user_get_passport(session->user); + const char *file = session->passport_info.file; + gchar *url; + while (*file && *file == '/') + ++file; + url = g_strconcat ("file:///", file, 0); gaim_notify_emails(gc, atoi(unread), FALSE, NULL, NULL, &passport, &url, NULL, NULL); + g_free (url); } }