Mercurial > pidgin
comparison libpurple/protocols/jabber/buddy.c @ 17884:feac55968392
Now all ad-hoc commands have to be sent through jabber_adhoc_execute to be properly executed (including the form steps). This cleans up the code a bit, and avoids DOS attacks by flooding the client with malicious ad-hoc command forms that were not requested.
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Mon, 25 Jun 2007 20:07:31 +0000 |
parents | f88b3a093cba |
children | 5c1ed6296b56 |
comparison
equal
deleted
inserted
replaced
17883:9a19c46adf66 | 17884:feac55968392 |
---|---|
1707 GList *commands; | 1707 GList *commands; |
1708 if (!jbr->commands) | 1708 if (!jbr->commands) |
1709 continue; | 1709 continue; |
1710 for(commands = jbr->commands; commands; commands = g_list_next(commands)) { | 1710 for(commands = jbr->commands; commands; commands = g_list_next(commands)) { |
1711 JabberAdHocCommands *cmd = commands->data; | 1711 JabberAdHocCommands *cmd = commands->data; |
1712 act = purple_menu_action_new(cmd->name, PURPLE_CALLBACK(jabber_adhoc_execute), cmd, NULL); | 1712 act = purple_menu_action_new(cmd->name, PURPLE_CALLBACK(jabber_adhoc_execute_action), cmd, NULL); |
1713 m = g_list_append(m, act); | 1713 m = g_list_append(m, act); |
1714 } | 1714 } |
1715 } | 1715 } |
1716 | 1716 |
1717 return m; | 1717 return m; |