pidgin: 7827ad5c: jabber: Print out plaintext-equivalent p...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sat Nov 20 13:15:48 EST 2010


----------------------------------------------------------------------
Revision: 7827ad5ca971c169586552a79a046a84a28b60ba
Parent:   cd236baf6d00f3e1561a40974ce1828b793ea187
Author:   darkrain42 at pidgin.im
Date:     11/19/10 21:42:59
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/7827ad5ca971c169586552a79a046a84a28b60ba

Changelog: 

jabber: Print out plaintext-equivalent passwords when PURPLE_UNSAFE_DEBUG is set.

Refs #a14565.

Changes against parent cd236baf6d00f3e1561a40974ce1828b793ea187

  patched  libpurple/protocols/jabber/jabber.c

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c	64d5e423fb0f05e8949de6bb3bd43019edd171f2
+++ libpurple/protocols/jabber/jabber.c	b14ecdca4504e398676bed6f0e392c89e61f9251
@@ -477,7 +477,7 @@ void jabber_send_raw(JabberStream *js, c
 		char *text = NULL, *last_part = NULL, *tag_start = NULL;
 
 		/* Because debug logs with plaintext passwords make me sad */
-		if(js->state != JABBER_STREAM_CONNECTED &&
+		if (!purple_debug_is_unsafe() && js->state != JABBER_STREAM_CONNECTED &&
 				/* Either <auth> or <query><password>... */
 				(((tag_start = strstr(data, "<auth ")) &&
 					strstr(data, "xmlns='" NS_XMPP_SASL "'")) ||


More information about the Commits mailing list