pidgin: b0c72a19: Patch from "Chris G." to extend the yaho...

datallah at pidgin.im datallah at pidgin.im
Mon Aug 4 21:46:18 EDT 2008


-----------------------------------------------------------------
Revision: b0c72a1983b0edaace1461de509c1749e83b75f3
Ancestor: 6329172d268ccd358600cfb60786c20dc36e60df
Author: datallah at pidgin.im
Date: 2008-08-05T01:43:42
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b0c72a1983b0edaace1461de509c1749e83b75f3

Modified files:
        libpurple/protocols/yahoo/yahoo_picture.c

ChangeLog: 

Patch from "Chris G." to extend the yahoo privacy to picture requests to help
avoid people using them to determine your IP.
Fixes #6499

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo_picture.c	27742c3cbc0f6a47db0f3953e1d6fa9fbcadf219
+++ libpurple/protocols/yahoo/yahoo_picture.c	85e1eb63706460d2d8a310ccb90ed45375635859
@@ -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 @@ void yahoo_process_picture(PurpleConnect
 		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 */


More information about the Commits mailing list