Pidgin security fixes
Merge pull request #847 from pyhalov/pidgin

Pidgin security fixes