comparison src/notify.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 62eb9fe24692
children 95ca0db2d01d
comparison
equal deleted inserted replaced
10208:cbdce0acbbe6 10209:9e0b98c458b1
181 181
182 return NULL; 182 return NULL;
183 } 183 }
184 184
185 void * 185 void *
186 gaim_notify_uri(void *handle, const char *uri) 186 gaim_notify_uri(void *handle, const char *uri, gboolean trusted)
187 { 187 {
188 GaimNotifyUiOps *ops; 188 GaimNotifyUiOps *ops;
189 189
190 g_return_val_if_fail(uri != NULL, NULL); 190 g_return_val_if_fail(uri != NULL, NULL);
191 191
195 GaimNotifyInfo *info; 195 GaimNotifyInfo *info;
196 196
197 info = g_new0(GaimNotifyInfo, 1); 197 info = g_new0(GaimNotifyInfo, 1);
198 info->type = GAIM_NOTIFY_URI; 198 info->type = GAIM_NOTIFY_URI;
199 info->handle = handle; 199 info->handle = handle;
200 info->ui_handle = ops->notify_uri(uri); 200 info->ui_handle = ops->notify_uri(uri, trusted);
201 201
202 handles = g_list_append(handles, info); 202 handles = g_list_append(handles, info);
203 203
204 return info->ui_handle; 204 return info->ui_handle;
205 } 205 }