Mercurial > pidgin.yaz
changeset 23690:0044b8f3727a
Patch from "Chris G." to extend the yahoo privacy to picture requests to help
avoid people using them to determine your IP.
Fixes #6499
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 05 Aug 2008 01:43:42 +0000 |
parents | c07b2a2b1b62 |
children | c31dfae66134 |
files | libpurple/protocols/yahoo/yahoo_picture.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_picture.c Mon Aug 04 15:52:22 2008 +0000 +++ b/libpurple/protocols/yahoo/yahoo_picture.c Tue Aug 05 01:43:42 2008 +0000 @@ -27,6 +27,7 @@ #include "accountopt.h" #include "blist.h" #include "debug.h" +#include "privacy.h" #include "prpl.h" #include "proxy.h" #include "util.h" @@ -109,6 +110,11 @@ l = l->next; } + if (!purple_privacy_check(purple_connection_get_account(gc), who)) { + purple_debug_info("yahoo", "Picture packet from %s dropped.\n", who); + return; + } + /* Yahoo IM 6 spits out 0.png as the URL if the buddy icon is not set */ if (who && got_icon_info && url && !g_ascii_strncasecmp(url, "http://", 7)) { /* TODO: make this work p2p, try p2p before the url */