Limnoria/plugins
James McCoy b42b06fe79 RSS._getConverter: Encode strings before handing them off to other functions
When the feed has a specified encoding, we'll be dealing with unicode objects
in the response from feedparser.parse().  To avoid possible UnicodeErrors, we
need to encode() before handing the string off to other functions, so the
other functions are always dealing with bytestrings instead of bytestrings and
unicode objects.  Mixing unicode and bytestrings will cause implicit
conversions of the unicode objects, which will most likely use the wrong
encoding.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
(cherry picked from commit 964c73f591)

Signed-off-by: Daniel Folkinshteyn <nanotube@users.sourceforge.net>
2011-12-12 11:04:03 -05:00
..
Admin Model Admin's ignore help after Channel's. 2010-09-02 09:05:52 -04:00
Alias Use conf.registerGlobalValue to ensure generated values are properly setup. 2010-06-25 00:42:02 -04:00
Anonymous Anonymous: Implement support for allowPrivateTarget config. 2010-06-03 10:43:31 -04:00
AutoMode Added supybot.plugins.AutoMode.owner, so the bot can choose not to automode owners. 2009-03-11 13:37:27 -04:00
BadWords BadWords: improve help for requireWordBoundaries config. 2010-09-08 00:11:28 -04:00
Channel Channel: Correct specification of "#channel,op" capability. 2010-09-02 09:09:29 -04:00
ChannelLogger ChannelLogger: include in logs the reasons for parts and quits 2010-06-15 23:53:15 -04:00
ChannelStats ChannelStats: Fix rank to work with selfStats 2010-05-12 13:19:01 -04:00
Conditional Conditional: allow empty string arguments in string-comparison functions 2010-06-03 17:03:39 -04:00
Config Fix some typos/wordings. 2009-08-26 16:34:12 -04:00
Ctcp Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
Dict Dict: Fix FSF address in included dictclient module 2011-06-27 14:41:49 -04:00
Dunno Add Dunno plugin from supybot-plugins package 2009-05-07 22:50:32 -04:00
Factoids Factoids: fix bug when making an alias to a newkey that already has a factoid associated with it. 2011-08-14 14:58:11 -04:00
Filter Filter: fix rainbow so it doesn't fail with numbers. 2011-01-24 16:18:01 -05:00
Format Format.replace: replacement text is now allowed to be the empty string. 2010-08-05 01:27:38 -04:00
Games Games: Re-add some, much higher, upper limits to dice. 2010-10-10 17:39:08 -04:00
Google Google: add some extra matching capability to google calc 2010-12-01 16:53:08 -05:00
Herald Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
Internet Update Internet.hexip to handle IPv6 2011-10-11 11:55:16 -04:00
Karma Karma: Refer to plugins.Karma.rankingDisplay in Karma.karma's help. 2010-10-10 17:38:44 -04:00
Lart Remove first person modification of the reason clause and add tests to support it. 2006-11-13 20:27:23 +00:00
Later for Later plugin, add test for actual sending of notes to nicks upon their being seen. 2010-04-29 20:20:36 -04:00
Limiter Limiter: Fix "reduce limit" test case. 2010-10-10 17:36:23 -04:00
Math Math: Update the units info from ConvertAll 2009-05-18 00:44:59 -04:00
MessageParser MessageParser: added configurable separator for the list command. 2010-08-19 20:12:07 -04:00
Misc Misc: fix potential ddos when misc.last command is fed a specially-crafted regexp. 2011-08-12 16:30:46 -04:00
MoobotFactoids MoobotFactoids: add check_same_thread=False to the sqlite3 connect calls, so it doesn't complain. (thanks malex!) 2010-08-02 17:51:17 -04:00
Network Network: Properly parse WHOIS response 2010-01-10 20:17:10 -05:00
News Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
NickCapture Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
Nickometer Small typos and doc fixes. 2009-11-04 22:54:46 -05:00
Note Secure some more commands which take a regexp from untrusted user input. 2011-08-12 18:13:27 -04:00
Owner Use the plugin name for Owner.defaultplugin's error message. 2010-10-10 17:39:40 -04:00
Plugin fix docstring for Plugin.plugin command so it actually says what the command will do. 2010-04-21 16:38:25 -04:00
Praise Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
Protector Use the hostmask argument isProtected is given instead of trying to use a non-existant variable. 2009-03-11 13:37:24 -04:00
Quote Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
QuoteGrabs update quotegrabs to sqlite3 2010-04-21 01:24:13 -04:00
Relay Update plugins to ignore all non-ACTION CTCP messages. 2010-01-28 08:14:44 -05:00
Reply add replies function to reply plugin, which makes multiple replies, if supybot.reply.oneToOne is false. 2010-03-22 01:06:02 -04:00
RSS RSS._getConverter: Encode strings before handing them off to other functions 2011-12-12 11:04:03 -05:00
Scheduler Scheduler: don't immediately execute commands when restoring repeated events. 2010-09-04 01:25:57 -04:00
Seen Seen: Anchor nick regexp to ensure valid match. 2011-10-11 11:55:27 -04:00
Services Services: catch occasional error when removing waiting joins from list 2011-08-08 18:45:02 -04:00
ShrinkUrl ShrinkUrl: Add serviceRotation config. 2010-07-11 23:05:39 -04:00
Status Status.processes: add output of currently active processes. 2010-08-06 14:48:21 -04:00
String String.decode: Only encode('utf-8') when the decode string is unicode 2011-12-12 11:03:18 -05:00
Success Add Success plugin from supybot-plugins package 2009-05-07 22:52:16 -04:00
Time Update dateutil to latest version and include all files 2009-05-11 12:16:28 -04:00
Todo Secure some more commands which take a regexp from untrusted user input. 2011-08-12 18:13:27 -04:00
Topic Topic: Ensure do315's response is for a channel in our state object 2011-10-11 11:56:02 -04:00
Unix Unix: Use converter to enforce "no spaces" for spell's argument. 2010-10-10 17:42:26 -04:00
URL Update plugins to ignore all non-ACTION CTCP messages. 2010-01-28 08:14:44 -05:00
User User: Handle DuplicateHostmask exception in hostmask.add. 2010-09-02 09:08:21 -04:00
Utilities Include String plugin for Utilities' tests. 2010-07-11 23:06:03 -04:00
Web Undo the web title fix because it appears it broke more than it fixed. 2011-11-21 15:14:34 -05:00
__init__.py Secure some more commands which take a regexp from untrusted user input. 2011-08-12 18:13:27 -04:00