changeset 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 e9af98f197af
children 8a40952f5f67
files src/protocols/msn/notification.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
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);
 		}
 	}