# HG changeset patch # User Daniel Atallah # Date 1217900622 0 # Node ID 0044b8f3727a64fcce2b97ece0cef514cd8b49d0 # Parent c07b2a2b1b620efe8abadc7fd30d2f5d12ab4926 Patch from "Chris G." to extend the yahoo privacy to picture requests to help avoid people using them to determine your IP. Fixes #6499 diff -r c07b2a2b1b62 -r 0044b8f3727a libpurple/protocols/yahoo/yahoo_picture.c --- 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 */