Limnoria/plugins
James McCoy ff96b898f9 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>

Conflicts:

	plugins/RSS/plugin.py
2011-12-19 01:32:05 +01:00
..
Admin Admin: Update l10n-it. 2011-11-07 19:40:04 +01:00
Alias Alias: Add l10n-de 2011-11-01 20:56:28 +01:00
Anonymous Anonymous: Add l10n-de 2011-10-29 10:29:37 +02:00
AutoMode AutoMode: Add l10n-de 2011-11-04 18:56:09 +01:00
BadWords BadWords: fixed more typos. 2011-08-16 17:17:34 +03:00
Channel Channel: Fix l10n-de 2011-11-13 19:03:42 +01:00
ChannelLogger ChannelLogger: Fix l10n-hu. 2011-08-19 16:24:25 +02:00
ChannelStats ChannelStats: Update l10n-it. 2011-09-02 20:03:45 +00:00
Conditional Update l10n-it for many plugins. 2011-08-07 11:16:04 +02:00
Config Config: Update l10n-de 2011-10-27 00:23:59 +02:00
Ctcp Ctcp: Add l10n-de 2011-10-30 19:03:45 +01:00
Dict Update l10n-it for many plugins. 2011-08-07 11:16:04 +02:00
Dunno Dunno: Add l10n-de 2011-11-04 18:56:46 +01:00
Factoids Merge branch 'typos' 2011-10-23 19:41:54 -04:00
Filter Update l10n-it for many plugins. 2011-08-07 11:16:04 +02:00
Format Format: update l10n-fi 2011-08-10 14:20:09 +03:00
Games Games: Update l10n-it. 2011-11-21 19:43:56 +01:00
Google Google: fix previous cherry-pick. 2011-12-13 18:10:20 +01:00
Herald Update l10n-it for many plugins. 2011-08-07 11:16:04 +02:00
Internet Merge remote-tracking branch 'supybot/maint/0.83.4' into testing 2011-08-23 16:41:52 +02:00
Karma Karma: Take profit of the return value of conf.registerPlugin(). 2011-10-28 22:44:10 +02:00
Lart Added a description on how to use the Lart plugin. 2011-09-11 19:37:41 -05:00
Later Later: Add l10n-de 2011-11-04 18:57:32 +01:00
Limiter Added a description of the plugin. 2011-09-11 19:54:19 -05:00
Math Added a description. 2011-09-11 19:57:30 -05:00
MessageParser Update l10n-it for many plugins. 2011-08-07 11:16:04 +02:00
Misc Prevent nesting of Misc.tell 2011-12-13 18:05:21 +01:00
MoobotFactoids Merge branch 'testing' of github.com:ProgVal/Limnoria into testing 2011-08-06 18:58:17 +02:00
Network Merge pull request #258 from fbesser/fbesser 2011-10-30 11:12:43 -07:00
News News: added l10n-fi. 2011-07-23 18:01:28 +03:00
NickCapture NickCapture: Add l10n-de 2011-11-04 18:58:14 +01:00
Nickometer Added a description. 2011-09-11 20:04:23 -05:00
Note Added a description. 2011-09-11 20:06:05 -05:00
Owner Owner: Update l10n-de 2011-11-04 18:59:37 +01:00
Plugin Plugin: Fix l10n-de 2011-11-01 20:55:42 +01:00
PluginDownloader PluginDownloader: Add l10n-de 2011-11-11 02:43:26 +01:00
Praise Added a description. 2011-09-11 20:11:28 -05:00
Protector Quote: added l10n-fi. 2011-07-24 16:05:28 +03:00
Quote Added a description. 2011-09-11 20:16:46 -05:00
QuoteGrabs QuoteGrabs: added l10n-fi. 2011-07-29 19:42:52 +03:00
Relay Relay: remove redundant nick on join/part when hostmasks enabled 2011-10-22 16:10:23 -04:00
Reply Reply: Add l10n-de 2011-10-29 10:30:46 +02:00
RSS RSS._getConverter: Encode strings before handing them off to other functions 2011-12-19 01:32:05 +01:00
Scheduler Scheduler: Fix typo in l10n-fr. 2011-11-19 22:45:12 +01:00
Seen Since: Fix traceback. 2011-12-03 20:55:25 +01:00
Services Simplify handling of per-network waitingJoins 2011-12-13 18:08:00 +01:00
ShrinkUrl ShrinkUrl: Added a description to README.txt 2011-11-06 21:26:55 +08:00
Status Status: Add l10n-de 2011-11-11 11:04:59 +01:00
String String: added l10n-fi. 2011-10-21 17:28:08 +03:00
Success Success: Added a description to READEME.txt 2011-11-06 21:27:39 +08:00
Time Time: Add l10n-hu. 2011-11-06 21:25:11 +08:00
Todo Todo: Add l10n-de 2011-11-11 11:03:27 +01:00
Topic Topic: add l10n-fi 2011-11-14 18:36:08 +02:00
Unix ChannelLogger & Format & Karma & Later & Misc & Owner & Reply & Seen & Status & Todo & URL & Unix: Update messages.pot and l10n-fr. 2011-08-10 11:44:57 +02:00
URL URL: Added a description to READEME.txt 2011-09-12 17:21:40 -05:00
User User: Fix l10n-de 2011-11-11 02:43:26 +01:00
Utilities Utilities: Add l10n-de 2011-10-30 19:06:35 +01:00
Web Web: Added a description to README.txt 2011-11-06 21:26:55 +08:00
__init__.py Secure some more commands which take a regexp from untrusted user input. 2011-08-13 01:59:18 +02:00