Mercurial > pidgin
diff libpurple/util.c @ 26895:6ddb4932772a
propagate from branch 'im.pidgin.cpw.sulabh.yahoo_16' (head c1ede5faf776dc1cc966dabb42c1ef0dbaea31db)
to branch 'im.pidgin.pidgin' (head 2a5f44f787052657964361388082569b98a37290)
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sun, 17 May 2009 01:55:15 +0000 |
parents | 9e45d860b9af e4ab3d5362df |
children | f303787f144d |
line wrap: on
line diff
--- a/libpurple/util.c Sat May 16 23:48:32 2009 +0000 +++ b/libpurple/util.c Sun May 17 01:55:15 2009 +0000 @@ -3919,7 +3919,10 @@ } } - purple_debug_misc("util", "Request: '%s'\n", gfud->request); + if(g_getenv("PURPLE_UNSAFE_DEBUG")) + purple_debug_misc("util", "Request: '%s'\n", gfud->request); + else + purple_debug_misc("util", "request constructed\n"); total_len = strlen(gfud->request); @@ -4022,9 +4025,12 @@ g_return_val_if_fail(url != NULL, NULL); g_return_val_if_fail(callback != NULL, NULL); - purple_debug_info("util", - "requested to fetch (%s), full=%d, user_agent=(%s), http11=%d\n", - url, full, user_agent?user_agent:"(null)", http11); + if(g_getenv("PURPLE_UNSAFE_DEBUG")) + purple_debug_info("util", + "requested to fetch (%s), full=%d, user_agent=(%s), http11=%d\n", + url, full, user_agent?user_agent:"(null)", http11); + else + purple_debug_info("util", "requesting to fetch a URL\n"); gfud = g_new0(PurpleUtilFetchUrlData, 1);