comparison src/protocols/oscar/oscar.c @ 10209:9e0b98c458b1

[gaim-migrate @ 11331] gaim_notify_uri now needs trusted parameter to indicate whether the source of the uri is trusted. This helps us avoid the security risks involved in blindly executing untrusted local file URIs in windows. This fixes the MSN open mail bug on windows. committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Fri, 19 Nov 2004 20:18:14 +0000
parents 137a880153ba
children 95ca0db2d01d
comparison
equal deleted inserted replaced
10208:cbdce0acbbe6 10209:9e0b98c458b1
7192 } 7192 }
7193 7193
7194 static void oscar_show_set_info_icqurl(GaimPluginAction *action) 7194 static void oscar_show_set_info_icqurl(GaimPluginAction *action)
7195 { 7195 {
7196 GaimConnection *gc = (GaimConnection *) action->context; 7196 GaimConnection *gc = (GaimConnection *) action->context;
7197 gaim_notify_uri(gc, "http://www.icq.com/whitepages/user_details.php"); 7197 gaim_notify_uri(gc, "http://www.icq.com/whitepages/user_details.php", TRUE);
7198 } 7198 }
7199 7199
7200 static void oscar_change_pass(GaimPluginAction *action) 7200 static void oscar_change_pass(GaimPluginAction *action)
7201 { 7201 {
7202 GaimConnection *gc = (GaimConnection *) action->context; 7202 GaimConnection *gc = (GaimConnection *) action->context;
7206 static void oscar_show_chpassurl(GaimPluginAction *action) 7206 static void oscar_show_chpassurl(GaimPluginAction *action)
7207 { 7207 {
7208 GaimConnection *gc = (GaimConnection *) action->context; 7208 GaimConnection *gc = (GaimConnection *) action->context;
7209 OscarData *od = gc->proto_data; 7209 OscarData *od = gc->proto_data;
7210 gchar *substituted = gaim_strreplace(od->sess->authinfo->chpassurl, "%s", gaim_account_get_username(gaim_connection_get_account(gc))); 7210 gchar *substituted = gaim_strreplace(od->sess->authinfo->chpassurl, "%s", gaim_account_get_username(gaim_connection_get_account(gc)));
7211 gaim_notify_uri(gc, substituted); 7211 gaim_notify_uri(gc, substituted, TRUE);
7212 g_free(substituted); 7212 g_free(substituted);
7213 } 7213 }
7214 7214
7215 static void oscar_show_imforwardingurl(GaimPluginAction *action) 7215 static void oscar_show_imforwardingurl(GaimPluginAction *action)
7216 { 7216 {
7217 GaimConnection *gc = (GaimConnection *) action->context; 7217 GaimConnection *gc = (GaimConnection *) action->context;
7218 gaim_notify_uri(gc, "http://mymobile.aol.com/dbreg/register?action=imf&clientID=1"); 7218 gaim_notify_uri(gc, "http://mymobile.aol.com/dbreg/register?action=imf&clientID=1", TRUE);
7219 } 7219 }
7220 7220
7221 static void oscar_set_icon(GaimConnection *gc, const char *iconfile) 7221 static void oscar_set_icon(GaimConnection *gc, const char *iconfile)
7222 { 7222 {
7223 OscarData *od = gc->proto_data; 7223 OscarData *od = gc->proto_data;